Question:class Sample { public Sample(int x) { } } In the above code, which of the following other class constructors can directly access the provided constructor? 

A public Sample() : this(1) { } 

B public Sample() : Sample(1) {} 

C Both of these 

D One class constructor can not directly access another constructor 

+ Answer
+ Report
Total Preview: 503

Copyright © 2024. Powered by Intellect Software Ltd