Do Nothing Constructor

What are Default Constructor and Do Nothing Constructor

Questions by amiomi

Showing Answers 1 - 9 of 9 Answers

madhoo_09

  • Feb 20th, 2009
 

Default constructors can contain statements and execute them but do nothing constructors does not contain any statements.

  Was this answer useful?  Yes

yzesong

  • Jul 30th, 2009
 

I think Do nothing constructor is the one OS offered, which has no argument in it, of course no return type. The default constructor has the same signature as DO nothing constructor, but you can write some initialization there, it can be overloaded. In a class, you can only have either one, not both.


  Was this answer useful?  Yes

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