5 ms·
I would argue no they are not. I am thinking of their implementation in python specifically, so my understanding is likely skewed. My notion of composition wit
by arcosdev 7y ago
I would argue no they are not. I am thinking of their implementation in python specifically, so my understanding is likely skewed.
My notion of composition with classes would be:
class Dog(object):
def __init__():
self.wagger = Wagger(); #composing the Wagger class
in python mixins look like this:
class Dog(object, WaggerMixin):
...etc...