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 do you mean by abstraction?
Is oop better than procedural?
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).
what are the realtime excercises in C++?
What are the three main types of variables?
What does no cap mean?
What is oops in simple words?
Which is not an object oriented programming language?
What is the real life example of polymorphism?
What does sksksk mean in text slang?
What is polymorphism and types?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
Why interface is used?
Write a program to reverse a string using recursive function?
What is inheritance in simple words?