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
How can a struct in c++ differs from a struct in c?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
Ask to write virtual base class code?
Why ctype h is used in c++?
What is type of 'this' pointer? Explain when it is get created?
What does it mean to declare a member variable as static?
If I is an integer variable, which is faster ++i or i++?
Explain "const" reference arguments in function?
What return value must conversion operators have in their declaration?
What is object in c++ example?
What are destructors?
When we use Abstract Class and when we use Interface?where we will implement in real time?
What is a class template in c++?
Write a Program to find the largest of 4 no using macros.
what is the difference between overloading & overriding? give example.