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
What do you mean by overloading?
What are constructors in oop?
What is coupling in oops?
What is the purpose of enum?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
What is the significance of classes in oop?
What are the benefits of interface?
What is oops and why we use oops?
What is methods in oop?
What is solid in oops?
What is the important feature of inheritance?
Write a program to reverse a string using recursive function?
What are the important components of cohesion?
Why is abstraction needed?
What is the fundamental idea of oop?