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.
Assistant
Sign in to use the assistant — ask what the problem means, get a hint when you're stuck, or have your current work reviewed. Conversations save to your account.