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 a function that swaps the values of two integers, using int* as the argument type?
Who invented turbo c++?
Explain data encapsulation?
Is python written in c or c++?
What are member functions used in c++?
What is a modifier in c++?
Do you know about latest advancements in C++ ?
What is the difference between #import and #include?
Why c++ does not have finally?
What is a loop? What are different types of loops in c++?
Can we inherit constructor in c++?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What does the following code do: int c=0; cout< a) Undefined *Updated* b) 01 c) 00
Describe the advantages of operator overloading?
Difference between a copy constructor and an assignment operator.