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
What is the advantage of an external iterator.
Can we use clrscr in c++?
Is it possible for a member function to delete the pointer, named this?
What is an inline function in c++?
What is the role of C++ shorthand's?
Differentiate between a pointer and a reference with respect to c++.
What is class in c++ with example?
What does h mean in maths?
Can comments be longer than one line?
What are features of c++?
What do you mean by a template?
Is java a c++?
What is the benefit of encapsulation?
What is the use of pointer in c++ with example?
Which compiler does turbo c++ use?