Category: java
-
Polymorphism in Java — Method Overloading
Let’s try to model a person object, and we see that the person has different roles to perform. He becomes an employee to fend for himself, his role changes as he becomes a brother, husband, father, etc. These diverse roles expect distinct behavior. His behavior changes as an employee of a company, and his behavior […]