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
Why is null pointer used?
Show the declaration for a static function pointer.
If you don’t declare a return value, what type of return value is assumed?
Who calls main function?
What do you understand by zombie objects in c++?
What is setiosflags c++?
What is the v-ptr?
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
What are features of c++?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What are the important differences between c++ and java?
Describe exception handling concept with an example?
Define the process of error-handling in case of constructor failure?
Explain how to initialize a const member data.
Which of the following is evaluated first: a) && b) || c) !