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


November 11, 2005 11:04:11 #4
 m11aravind   Member Since: November 2005    Total Comments: 4 

RE: In c++ have a default constructor ?
 

yes, In C++ we have a default constructor .

 A "default constructor" is a constructor that can be called with no arguments. One example of this is a constructor that takes no parameters

class Fred {
 public:
   Fred();   
// Default constructor: can be called with no args
   
...
 };
---by moparthi Aravind

     

 

Back To Question