Class A(){};int main(){ A a;}Whether there will be a default contructor provided by the compiler in above case ?

Showing Answers 1 - 4 of 4 Answers

Dinesh

  • Jan 19th, 2006
 

yes, Compiler will provide it

  Was this answer useful?  Yes

bantisk

  • Jan 19th, 2006
 

yes, if the designer of the class donot define any constructor in the class. then the compiler provides the default constructor in the class.

  Was this answer useful?  Yes

bappa

  • Jun 5th, 2006
 

constructor is initialized the data members....in the above case no data members r there in the class.....so....i think compiler call default constructor but it does nothing...

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions