Professional Documents
Culture Documents
Assignment: The Object Oriented Programing (Oop) Concept (Polymorphism)
Assignment: The Object Oriented Programing (Oop) Concept (Polymorphism)
ORIENTED PROGRAMING
(OOP) CONCEPT
(P O LY M O R P H I S M )
Mr. Farhad Khan
Tue 01 Feb, 2022
Polymorphism
• Background: The word Polymorphism is
derived from two Greek words i.e. “Poly” and
“Morphs”
• Poly means MANY while Morphs means
FORMS
• So Polymorphism is the ability of a
programing language to present the same
interface for several different underlying data
types
Polymorphism (Daily Life Example)
• In OOP the Polymorphism means single
object having many forms
• Same as a single Person in daily life, may be a
Father, a Husband, an Employee and a
Driver at the same time
• Same person posses different behavior in
different situations
• This is called polymorphism
Types of Polymorphism
Polymorphism