Answer Posted / isha
Dear friend , you have done a mistake..
Example:
class Employee {
virtual ~Employee() {}
};
class Manager : public Employee {
~Manager() {}
}
Employee * m = new Manager();//here was the mistake
delete m; // <--
| Is This Answer Correct ? | 9 Yes | 0 No |
Post New Answer View All Answers
What is the important feature of inheritance?
Why polymorphism is used in oops?
to find out the minimum of two integer number of two different classes using friend function
Can enum be null?
What is interface in oop?
What is stream in oop?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What is difference between data abstraction and encapsulation?
What exactly is polymorphism?
class type to basic type conversion
2. Give the different notations for the class.\
What does sksksk mean in text slang?
What is the importance of oop?
What does no cap mean?
What is the difference between static polymorphism and dynamic polymorphism?