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


Please Help Members By Posting Answers For Below Questions

What is the difference between structures and unions?

796


What is the use of register keyword with the variables?

747


Are iterators pointers?

890


Which of the following is evaluated first: a) && b) || c) !

2065


Explain the differences between list x; & list x();.

765


What are move semantics?

866


Is c++ the hardest programming language?

838


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6142


Is c++ a programming language?

800


How does list r; differs from list r();?

907


Write a program which uses Command Line Arguments

850


What is a singleton c++?

777


Why do we use setw in c++?

857


What is #include ctype h in c++?

873


What is purpose of abstract class?

796