Answer Posted / dipraj shahane
Constructor is special member function of class which having
same name as Class name and no return type. Main function of
Constructor is to initialize (give default values to member
variable of class object) object. Constructor gets invoke
when you create new object by following syntax.
ClassName objectName = new ClassName();
| Is This Answer Correct ? | 22 Yes | 0 No |
Post New Answer View All Answers
What is the use of oops?
What is a class oop?
What does and I oop mean in text?
Can we create object of interface?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is inheritance write a program to show use of inheritance?
Get me an image implementation program.
What is meant by multiple inheritance?
What is the real life example of polymorphism?
What is object in oop with example?
What is constructor overloading in oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is advantage of inheritance?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What is a superclass in oop?