Comment on Why composition is often better than inheritanceparentComments−skj12yThe stuff you mix in has code. Interfaces do not.−jhasse12yWhat code do you mean? He only wrote "pass". I guess I'm confused because he still used inheritance.−skj12yThere was a place to write code. In this example, obviously, none was written. But interfaces leave no opportunity.
Comments
The stuff you mix in has code. Interfaces do not.
What code do you mean? He only wrote "pass". I guess I'm confused because he still used inheritance.
There was a place to write code. In this example, obviously, none was written. But interfaces leave no opportunity.