Oct 23, 2015

What is Polymorphism

   Before going to that, I will explain a real world example. If you give an instruction "cut" to three different people – a hair stylist, a doctor and a movie actor. How do they respond?  The hair stylist cuts the hair.  A doctor will cut the patient’s body for surgery, a movie actor will stop acting. The message (cut) is same to all three objects (actor, hair stylist...
Filed under  |