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

HashMap, TreeMap and LinkedHashMap difference

Language Fundamentals in Java

Interface and Abstract Class in Java