GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Programming  >  C++

 Print  |  
Question:  Do Nothing Constructor

Answer: What are Default Constructor and Do Nothing Constructor


July 07, 2009 11:38:12 #3
 yzesong   Member Since: July 2009    Total Comments: 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.

     

 

Back To Question