Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Mixin Based Inheritance in Dart?

This is definition of Mixin Based Programming from the official Docs,

Mixin-based inheritance means that although every class (except for Object) has exactly one superclass, a class body can be reused in multiple class hierarchies.

Can anyone explain this ?

like image 323
Shubhamhackz Avatar asked Mar 05 '23 22:03

Shubhamhackz


1 Answers

enter image description here enter image description here

From https://medium.com/flutter-community/dart-what-are-mixins-3a72344011f3

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀

like image 150
Rainning Avatar answered Mar 09 '23 01:03

Rainning