ES6 mixins can be seen as an alternative to traditional ___________ in object-oriented programming.

  • Inheritance
  • Encapsulation
  • Polymorphism
  • Abstraction
The correct option is Inheritance. ES6 mixins provide an alternative to traditional inheritance in object-oriented programming. With mixins, you can compose functionality from multiple sources without the need for a deep inheritance hierarchy, promoting a more modular and flexible code structure.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *