Hacker News new | ask | show | jobs
by linguae 424 days ago
Coincidentally, I just taught composition over inheritance this morning in my class on object-oriented programming in C++ at Ohlone College in Fremont, CA, and gave an example of why it is undesirable for a stack implementation to inherit a linked list as opposed to just having a linked list as a member. We will learn the SOLID principles of object-oriented software design on Thursday. I may end up passing along this article to my students. Thanks for sharing!
1 comments

Hi @linguae, The video in the post, originally presented by Barbara Liskov, is a very interesting resource on this topic. Let me know if your students want to discuss this in more detail, and please share their ideas!