Answer Posted / jaroosh
To sum up : you CANT declare destructor as static, as you
CANT declare constructor as static, both are responsible for
destroying and creating OBJECTS while static storage means
that methods/members do not belong to any objects but to the
whole class.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
When is the destructor called?
How do you write a function that can reverse a linked-list?
Which is most difficult programming language?
Write about the members that a derived class can add?
Explain the properties and principles of oop.
If you don’t declare a return value, what type of return value is assumed?
What do you mean by function pointer?
How do you compile the source code with your compiler?
Is it possible for a member function to use delete this?
What do you understand by pure virtual function? Write about its use?
Define the process of handling in case of destructor failure?
What is recursion?
Give 10 points of differences between C & C++.
Comment on assignment operator in c++.
What is the use of function pointer?