rankz_VtujUdhflsoFhdgp Principle of Polymorphism - All type study material

Java programming

Java programming

About Me

my self - Harvendra Singh

Search This Blog

Friday, January 17, 2020

Principle of Polymorphism

 Principle of Polymorphism-
  • Polymorphism refers to a principle in which an organism or species can have many different forms or stages. 
  • This principle can also be applied to object-oriented programming and language like the Java language. 
  • Subclass of a class can define their own unique behaviours and yet share some of the same functionality of the parent class 
  • Polymorphism is another important OOP concept. The Polymorphism means the ability to take more than one form for ex. 
  • An operation make exhibit different behaviour in different instase. The behaviour depends upon the type of data use in the operation for ex. Consider the operation of addiction for two numbers the operation will generate a sound. If the oprands are stings. Then the operation would produces a third string by concatenation. 


    Block- diagram of Polymorphism 

1 comment: