Java OOPS – Part 4 – Polymorphism – method overriding & overloading
Polymorphism – Polymorphism means – one in many forms Creating multiple methods / functions with the same name but performing different task, same way creating single object or reference variable referring to multiple classes. Polymorphism can be achieved in 2 ways Method Overloading (Compile time polymorphism or static binding) Method Overriding (Run time…