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 difference between structures and unions?
What is the use of register keyword with the variables?
Are iterators pointers?
Which of the following is evaluated first: a) && b) || c) !
Explain the differences between list x; & list x();.
What are move semantics?
Is c++ the hardest programming language?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
Is c++ a programming language?
How does list r; differs from list r();?
Write a program which uses Command Line Arguments
What is a singleton c++?
Why do we use setw in c++?
What is #include ctype h in c++?
What is purpose of abstract class?