Polymorphism in Java PowerPoint PPT Presentation

presentation player overlay
About This Presentation
Transcript and Presenter's Notes

Title: Polymorphism in Java


1
Polymorphism in Java
  • accordittraining.com

2
What is polymorphism?
  • Polymorphism is the capability of a method to do
    different things based on the object that it is
    acting upon. 

3
Types of Polymorphism
  • There are two types of polymorphism in
    java1) Static Polymorphism also known as
    compile time polymorphism2) Dynamic
    Polymorphism also known as runtime polymorphism

4
Static Polymorphism
  • Polymorphism that is resolved during compiler
    time is known as static polymorphism or compile
    time polymorphism. Method overloading is an
    example of compile time polymorphism.

5
Dynamic polymorphism
  • It is also known as Dynamic Method Dispatch.
    Dynamic polymorphism is a process in which a call
    to an overridden method is resolved at runtime,
    thats why it is called runtime polymorphism.

6
Contact US
www.accordittraining.com
Mail US enquiry_at_accordittraining.com
CALL US 91 9940289059
Write a Comment
User Comments (0)
About PowerShow.com