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 are different oops concepts?
What do you mean by variable?
What is overloading in oop?
is there any choice in opting subjects like 4 out of 7
Can we override main method?
Why do we use polymorphism?
What is abstraction and encapsulation?
What is class and object with example?
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).
Is oop better than procedural?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is protected in oop?
What is the example of polymorphism?
What exactly is polymorphism?
What are benefits of oop?