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
What is a friend function in c++?
Can we distribute function templates and class templates in object libraries?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is the use of function pointer?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is command line arguments in C++? What are its uses? Where we have to use this?
What is a type library?
Which one is better- macro or function?
Do the parentheses after the type name make a difference with new?
How do I run a program in notepad ++?
What is the use of :: operator in c++?
Why struct is used in c++?
Explain the properties and principles of oop.
Explain class invariant.