Answer Posted / deepak
No we can not have private destructor
| Is This Answer Correct ? | 0 Yes | 12 No |
Post New Answer View All Answers
Describe delete operator?
What is static in c++?
What are multiple inheritances (virtual inheritance)?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Why do we use classes in programming?
How to give an alternate name to a namespace?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Which compiler does turbo c++ use?
Explain Memory Allocation in C/C++ ?
how to explain our contribution in the project?
Is overriding possible in c++?
Can we define a constructor as virtual in c++?
Can we get the value of ios format flags?
Why cstdlib is used in c++?
an operation between an integer and real always yeilds a) integer result b) real result c) float result