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 are the 5 oop principles?
How to use CMutex, CSemaphore in VC++ MFC
Why is polymorphism important in oop?
How is polymorphism achieved?
Which language is not a true object oriented programming language?
What is the difference between static polymorphism and dynamic polymorphism?
What do you mean by Encapsulation?
Advantage and disadvantage of routing in telecom sector
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
What is the use of oops?
Why do we need polymorphism in c#?
What is overloading and its types?
What is the highest level of cohesion?
Why do we use encapsulation in oops?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)