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

Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

808


What is the output of the following program? Why?

821


What is polymorphism & list its types in c++?

806


Which software is used to run c++ program?

724


What is the difference between global int and static int declaration?

627


What does std mean in c++?

792


How compile and run c++ program in turbo c++?

850


Explain queue. How it can be implemented?

887


What is the need of a destructor?

864


Define a nested class.

825


What is else syntax in c++?

855


Is c++ fully object oriented?

729


Why are pointers not used in c++?

821


Why is "using namespace std;" considered bad practice?

850


Write bites in Turbo c++ Header ("Include") Files.

940