What is Constructor
Answers were Sorted based on User's Feedback
Answer / biswajit rout
Constructor is a special type of member function which
never returns any value.It is mainlly used for
initilazation of data member(s).It can only invoked by the
creation of the object of the respective class.constructor
can very well use AccessSpecifier.
constructor can very well overloaded but it can not be
overridden.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / dipankar gain
constructor is just like a method(a function in C/C++) which
is called before the object of the class is created.
Generally you dont need to give the constructor in the class
definition but if you want to do something like initializing
variables, starting a connection, connect to the database,
then you should use the constructors.
If you dont include the constructor in your class, then the
java compiler puts it for you, its called the default
constructor.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ada
Constructor creates an object and initializes it. It also
creates vtable for virtual functions. It's different from
other methods in a class.
| Is This Answer Correct ? | 17 Yes | 22 No |
Answer / raj
contructor is construct which is construct
something................
| Is This Answer Correct ? | 6 Yes | 16 No |
what is c++
What is a standard template library (stl)?
HOW TO GET "H1B" -VISA 4 USA FOR MY SON?HE HAD COMPLETED "MS"(IT)FROM AUSTALIA 2007.I AM WORKING IN U.S.A.
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 ....
What is stl language?
Explain stl.
Which data structure gives efficient search? A. B-tree B. binary tree C. array D. linked list
21 Answers ABC, Sun Microsystems,
What is stl stack?
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.
What is stl stand for?
What is Constructor