Answer Posted / murali
Yes we can. But you can't use it.
Use new to create the object.
At the same time you can't use delete.
Why can't : As destuctor uses 'this' context and in this
case it can't being static.
| Is This Answer Correct ? | 8 Yes | 2 No |
Post New Answer View All Answers
Write about the members that a derived class can add?
How is new() different from malloc()?
What is the use of endl in c++?
Explain public, protected, private in c++?
What happens when you make call 'delete this;'?
What is the difference between an array and a list?
Explain the auto storage classes in c++.
What are the manipulators in c++?
What is the basic difference between C and C++?
What is runtime errors c++?
What is the array and initializing arrays in c++?
What is the difference between delegation and implemented-in-terms-of?
How is computer programming useful in real life?
How java is different from c and c++?
Explain deep copy?