On Thu, Jan 28, 2016 at 4:14 PM, Alan Gauld <alan.ga...@btinternet.com> wrote: > On 28/01/16 20:03, Danny Yoo wrote: >> (Aside: this is somewhat why I think the topic of inheritance and >> inheritance >> hierarchies are entirely the wrong things to focus on when we're >> teaching OOP. > > Absolutely. > I always try to focus on the objects passing, and responding to, *messages* > as the key feature. Inheritance is a convenience, often abused to do code > reuse. The thing to focus on is polymorphism which just happens to be > implemented by inheritance heirarchies in most languages (although > not in python!)
I'll ask you the same question that I asked Danny: Do you have a favorite text which teaches OOP the way you feel it should be taught? And if possible, Python-based? boB _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor