why all c++ program must have default constructor?

Answer Posted / varsha

Default constructor and destructor gice compilers a place to
hide the code such as invocation of contructors of Base
classes and non static data members.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the extraction and insertion operators in c++?

663


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

918


What are the benefits of operator overloading?

787


What is the main purpose of overloading operators?

680


What is a static member?

692






What is a buffer c++?

671


Why are pointers used?

654


How do you invoke a base member function from a derived class in which you have not overridden that function?

698


Why do we use classes in c++?

679


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

674


Will c++ be replaced?

707


How many characters are recognized by ANSI C++?

1016


What is friend class in c++ with example?

592


What is data abstraction? How is it different from data encapsulation?

617


Distinguish between a # include and #define.

754