Re:Classes Are Making Me Sad
by Joeri on Thursday March 09, 2017 @01:45PM
(#13831807)
In prototype inheritance, objects inherit from objects. This creates flexibility, since you can dynamically create a base object to inherit from. You can also easily augment base objects after they're inherited from. Class-based inheritance is less powerful in most languages due to the increased runtime rigidity of the class hierarchy. That's the theory. In practice everyone treats prototypes as classes.
[ Parent
| on HN ]
There are no comments on this comment yet.