why all c++ program must have default constructor?
Answer Posted / bhuvan singh
a defaulft constructor is created that takes no parameters
and does nothing.that takes no arguments but sets up your
object as required.
A defaulft constructor ,but by no convention so is any
constructor that takes parameters ,this is can be a bit confusing ,but is usually clear from context which one is meant.
A default constructor is not made by the compiler.so if u want a constructor that takes no parameters ,and u,ve created any others constructors ,u must make the default constructor urself.
"that if u make any constructor at all."
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Do class declarations end with a semicolon?
What is namespace & why it is used in c++?
what do you mean by volatile variable?
Can we declare a base-class destructor as virtual?
Is c++ a programming language?
What return value must conversion operators have in their declaration?
What is a character in c++?
When is dynamic checking necessary?
What is the difference between a pointer and a link in c ++?
What is the header file for setw?
How many standards of c++ are there?
What is c++ hash?
Differentiate between realloc() and free().
What are c++ data types?
What is vector string in c++?