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
Why is polymorphism needed?
How is polymorphism achieved?
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 abstraction with example?
Are polymorphisms mutations?
How to improve object oriented design skills?
write a program that takes input in digits and display the result in words from 1 to 1000
Give two or more real cenario of virtual function and vertual object
Please send ford technologies placement paper 2 my mail id
which feature are not hold visual basic of oop?
What is the main purpose of inheritance law?
What does no cap mean?
What is inheritance and how many types of inheritance?
What is byval and byref? What are differences between them?
Why do we use polymorphism?