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
Write a program which uses functions like strcmp(), strcpy()? etc
Can union be self referenced?
What are the restrictions apply to constructors and destructors?
What are the various operations performed on stack?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Define pre-condition and post-condition to a member function in c++?
How do you clear a buffer in c++?
How do c++ struct differs from the c++ class?
What is a v-table?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
Is it possible to write a c++ template to check for a function's existence?
What methods can be overridden in java?
Is there finally in c++?
Can a function take variable length arguments, if yes, how?
What is cin clear () in c++?