Answer Posted / priya
Constructor gets called when we create an object,or when we
allocated memory using new operator:
void main()
{
test *t = new test;
delete t;
}
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is overloading in oops?
What does sksksk mean in text slang?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is polymorphism and its types?
What is an example of genetic polymorphism?
Can bst contain duplicates?
What is inheritance in oop?
What is destructor give example?
What is polymorphism give a real life example?
How oops is better than procedural?
What is variable example?
What are the two different types of polymorphism?
What are constructors in oop?
How do you use inheritance in unity?