Answer Posted / syed abdul gaffur.
CONSTRUCTOR:
Constructors cannot be virtual. Declaring a constructor as a virtual function is a syntax error.
DISTRUCTOR :
If an object (with a non-virtual destructor) is destroyed explicitly by applying the delete operator to a base-class pointer to the object, the base-class destructor function (matching the pointer type) is called on the object
| Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is an interface in oop?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Can a varargs method be overloaded?
What is overriding vs overloading?
What is difference between pop and oop?
Prepare me a program for the animation of train
What are classes oop?
What is object and example?
What are the important components of cohesion?
What is the real time example of inheritance?
What are properties in oop?
What are the benefits of oop?
What is abstract class in oops?
What is an advantage of polymorphism?
what is different between oops and c++