One of the three basic properties of "Objects and Object Oriented Programing (OOP)" is Polymorphism.
POLYMORPHISM: poly = many, morphism = phases.
The polymorphic part is when different code is executed for the same method call (the terminology “invoke a method” can be used as well).
For theory read your book and this.
Once you read the above open this document and state the output of program1 and program 2;
POLYMORPHISM: poly = many, morphism = phases.
The polymorphic part is when different code is executed for the same method call (the terminology “invoke a method” can be used as well).
For theory read your book and this.
Once you read the above open this document and state the output of program1 and program 2;