What Do Object-Oriented Languages Share?
Name three things object-oriented languages share.
Answer out loud in under a minute: a definition, one concrete example, and one pitfall or trade-off.
Hints
Hint 1
Three words, each with a one-line example.
Solution
Show the approach
Answer
Encapsulation, inheritance and polymorphism. Add abstraction if a fourth is welcome, and note that JavaScript gets inheritance from prototypes rather than classes.