Monday, August 24, 2015

OOPs as Human Beings

In this small post, I am going to compare Object Oriented Programming with human beings


  1. Classes --> Humans
  2. Objects -- > you are instance of humans 
  3. Inheritances --> you got certain features from you parents by birth
  4. Polymorphism --> your behavior sometime depends/changes on person in front of you 
  5. Function Overriding :you have two hands similar to method name is same and signature is different
  6. Overriding : you have overridden some feature from your parents

No comments:

Post a Comment