maybe if you are new in the programming you do not know what does mean Mixin or you do not know this term before, maybe you never see this term at the university but it is very important in the programming world in this article you will going to learn about this term and how it could help you in your code.
before nothing what is that , maybe that is your first question then let is go explain you this amazing term.
is a class that contains methods for use by other classes without having to be the parent class of those other classes.
do you understand this?
no?
A mixin is a special kind of multiple inheritance. There are two main situations where mixins are used:
- You want to provide a lot of optional features for a class.
- You want to use one particular feature in a lot of different classes.
this examples are thank stackoverflow
No hay comentarios.:
Publicar un comentario