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
help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase
What do stl stand for?
What is a stl vector?
If P is the population on the first day of the year, B is the birth rate, and D is the death rate, the estimated population at the end of the year is given by the formula: The population growth rate is given by the formula: B – D Write a program that prompts the user to enter the starting population, birth and death rates, and n, the number of years. The program should then calculate and print the estimated population after n years. Your program must have at least the following functions: 1. growthRate: This function takes its parameters the birth and death rates, and it returns the population growth rate. 2. estimatedPopulation: This function takes its parameters the current population, population growth rate, and n, the number of years. It returns the estimated population after n years Your program should not accept a negative birth rate, negative death rate, or a population less than 2. please answer my question ....
Why should a c++ programmer be interested in stl?
What is a standard template library (stl)? What are the various types of stl containers?
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
Is there any error below, its a code to delete all entires from a map #include
totoo po ba ang manga aliens!
Name the different types of stl containers.
In what scenario does the Logical file and Physical file being used?
When did c++ add stl?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
How stl is different from the c++ standard library?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.