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:  In c++ have a default constructor ?


Answer: No


October 10, 2005 11:51:35 #2
 Jim   Member Since: Visitor    Total Comments: N/A 

RE: In c++ have a default constructor ?
 
A default constructor is a constuctor that can be invoked without any arguments.  This could be a constructor without any parameters or a constructor that has parameters with default arguments.  Only one constructor in a class can have default arguments.
     

 

Back To Question