GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  C++
Go To First  |  Previous Question  |  Next Question 
 C++  |  Question 192 of 203    Print  
Do Nothing Constructor
What are Default Constructor and Do Nothing Constructor


  
Total Answers and Comments: 3 Last Update: July 31, 2009     Asked by: amiomi 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 20, 2009 06:15:02   #1  
madhoo_09 Member Since: February 2009   Contribution: 15    

RE: Do Nothing Constructor
Default constructors can contain statements and execute them but do nothing constructors does not contain any statements.
 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 2Overall Rating: -2    
May 16, 2009 06:07:24   #2  
inspirevinchi Member Since: May 2009   Contribution: 1    

RE: Do Nothing Constructor
Constructor with no arguments or arguments with default value are called default constructor.
 
Is this answer useful? Yes | No
July 30, 2009 11:38:12   #3  
yzesong Member Since: July 2009   Contribution: 20    

RE: Do Nothing Constructor
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.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape