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
Can we override main method?
what is different between oops and c++
What is destructor in oop?
What is oops and its features?
What are the two different types of polymorphism?
What is polymorphism used for?
Why is object oriented programming so hard?
What is difference between data abstraction and encapsulation?
hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.
What are the three parts of a simple empty class?
What are oops functions?
What is encapsulation in ict?
Why is polymorphism used?
What is difference between pop and oop?
Advantage and disadvantage of routing in telecom sector