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
History,
3 months ago
English,
3 months ago
World Languages,
7 months ago
India Languages,
7 months ago
Environmental Sciences,
1 year ago
English,
1 year ago