Multiple Inheritance

The essence of Object-Oriented Programming is inheritance, overriding, and dynamic dispatch. Because the inheritance is so powerful in programming, what about using it to do some more powerful thinds.

  • Multiple inheritance
  • Mixins
  • Interfaces

Multiple inheritance

  • Languages with multiple inheritance let one class extend multiple other classes. It is the most powerful idea among those three.

Let us give you one example to show why mutiple inheritance is very powerful.

Point Example

```

Draveness

继续阅读此作者的更多文章

comments powered by Disqus