re: Explain Encapsulation and Polymorphism Like I'm Five VIEW POST

FULL DISCUSSION
 

Encapsulation?! Encapsulation is when you need to mess with something but at the same time need to protect yourself (or protect this thing) while you mess with it!

Like change the car direction... to turn the car direction you need to turn the wheels to the direction you want. But you don't stop the car and turn the wheels using your hands! To this purpose you use the car steering wheel. The car steering wheel will talk to the wheels to change the direction!

Polymorphism?! Humm... go ask you mom!

code of conduct - report abuse