Real world example of protypal inheritance? via /r/learnprogramming


Real world example of protypal inheritance?

I'm new to programming and currently teaching myself JS but I'm hitting an impasse when it comes to object inheritance. I can understand it in a simplified context but I'm struggling to see the real-world application of prototypal vs classical inheritance and when to use one over the other.

Can someone give me a simple but real world application of these concepts?

Submitted July 17, 2017 at 02:57PM by brodega
via reddit http://ift.tt/2t8VORO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s