[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.
Technical Discussion :: C++

88 / 187

Distinguish between default constructor and default argument constructor?

Answer:

Default constructor:

1. The constructor that accepts no parameter is called is a default constructor.
2.it is used in class by
A :: A( )

Default argument constructor:

1. The default argument constructor can be called with either one argument or no arguments.
2. It is used in class by
A:: A(int =0)

Asked In ::

Post Your Answer Here:


Rate This: +0 -0     
Report    

Post Your Reply Here:

Alert me
q4i-reply-your-answer

Report Error

Please Login First Click Here

Most Popular Qs.