with the help of an example explain the concept of polymorphism
Answers
Answered by
2
Answer:
An important example of polymorphism is how a parent class refers to a child class object. In fact, any object that satisfies more than one IS-A relationship is polymorphic in nature. For instance, let's consider a class Animal and let Cat be a subclass of Animal . So, any cat IS animal
Answered by
0
Answer:
An important example of polymorphism is how a parent class refers to a child class object. In fact, any object that satisfies more than one IS-A relationship is polymorphic in nature. For instance, let's consider a class Animal and let Cat be a subclass of Animal . So, any cat IS animal.
Similar questions
Math,
4 months ago
English,
4 months ago
Math,
4 months ago
World Languages,
8 months ago
India Languages,
8 months ago
Environmental Sciences,
1 year ago
English,
1 year ago