This document discusses polymorphism as it relates to a parent class referring to a child class object. Any object that satisfies more than one "is-a" relationship is considered polymorphic in nature. It provides an example code of a class called DemoOverload that contains an add method that takes in two integer parameters and returns their sum.
This document discusses polymorphism as it relates to a parent class referring to a child class object. Any object that satisfies more than one "is-a" relationship is considered polymorphic in nature. It provides an example code of a class called DemoOverload that contains an add method that takes in two integer parameters and returns their sum.
This document discusses polymorphism as it relates to a parent class referring to a child class object. Any object that satisfies more than one "is-a" relationship is considered polymorphic in nature. It provides an example code of a class called DemoOverload that contains an add method that takes in two integer parameters and returns their sum.