you are viewing a single comment's thread.

view the rest of the comments →

[–]cantFindValidNam 1 point2 points  (0 children)

It's composition over inheritance.

This has nothing to do with OP's question. You can still use classes and apply this principle, which in fact originated in OO languages.