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
How can we access protected and private members of a class?
Describe private, protected and public?
Is c++ vector a linked list?
Can malloc be used in c++?
How important is c++?
What are the steps in the development cycle?
What is meant by entry controlled loop?
What are the two types of comments?
What is setfill c++?
What gives the current position of the put pointer?
Is c++ a good first language to learn?
Does there exist any other function which can be used to convert an integer or a float to a string?
What is cout flush?
How does c++ structure differ from c++ class?
What is an adaptor class or wrapper class in c++?