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
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 a null tree?
What is abstraction encapsulation?
What are the features of oop?
Can enum be null?
what are the realtime excercises in C++?
What is use of overloading?
What is the diamond problem in inheritance?
Who invented oop?
any one please tell me the purpose of operator overloading
Write a c++ program to display pass and fail for three student using static member function
Why is polymorphism needed?
Can you explain polymorphism?
What is the purpose of enum?
write string class as your own class in java without using any built-in function