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

Is multimap sorted c++?

555


What are the storage qualifiers?

659


Give 10 points of differences between C & C++.

614


an operation between an integer and real always yeilds a) integer result b) real result c) float result

702


What is the difference between the parameter to a template and the parameter to a function?

626






What is setf in c++?

572


Is c++ map a hash table?

560


Differences between private, protected and public and give examples.

573


How can we access protected and private members of a class?

584


What is near, far and huge pointers? How many bytes are occupied by them?

651


What is istream and ostream in c++?

588


Is there any function that can skip certain number of characters present in the input stream?

578


How does atoi function work?

617


Why we use #include iostream in c++?

570


Explain the properties and principles of oop.

524