Polymorphism in Java

Overview

Polymorphism is a task that can perform single action in multiple ways.

Types of Polymorphism

  1. Method Overloading - Using the same method with different type of parameters.
  2. Method Overriding - Using the same method which you inherited from your base class.

Reference 

Comments

Popular posts from this blog

Collections in Java

Exception Handling

OOPS Concept in Java