Answer Posted / amit chauhan
* these are the special member fun" used for automatic
initialization of the object of the class.
* these r defined along with other member fun"of the
class,but the format of the constructor definition is diff.
from the other member fun".
* constructor can take parameters in their parameter list as
needed, called parametrized constructor.
* but they can't return a value,not even void.
* the name of the constructor is same as that of the class.
* constructor r called automatically whenever an object of
the class is created.
* a constructor without any parameter is called default
constructor.
* there is one another type,called copy constructor.compiler
will use the copy constructor whenever you initialize an
instance using values of another instance of same type.
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
how to making game in c++ ?
What is stl stand for?
totoo po ba ang manga aliens!
write a program that will accept a number and print.its equivalent in words the maximum input number is 9999
What are stl algorithms?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What are the different types of stl containers?
What is stl stack?
What is a list in c++ stl?
How is stl different from c++ standard library?
sir please send me bpcl previous question papers
What are the symptoms of stl?
Who wrote stl?
Who created stl?
How connect plc and pc through software