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
Where You Can Use Interface in your Project
What is protected in oop?
What is encapsulation in ict?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
What is oops concept with example?
Why is destructor used?
class type to basic type conversion
What is class in oop with example?
What is oops with example?
What is purpose of inheritance?
What does sksksk mean in text slang?
Whats oop mean?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What does and I oop mean?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box