Jason Warner
Jun 8, 2021

--

Of course. An interface is just a contract that an object will have a certain shape. You could even have one of your mixins make your object conform to the interface that you want. Or you could create a base object that already implements that interface and then use your mixins to modify the object. Mixins are a powerful form of composition.

--

--

Jason Warner
Jason Warner

Written by Jason Warner

I enjoy everything related to code and being a dev. However, my only skills are showing up and being lucky and I'm not sure if luck is a talent.

Responses (1)