Electronic/World Wide Web>Internet Article:  Sitaker, Kragen Javier (2011-08-22), Goodbye, shitty Car extends Vehicle object-orientation tutorial, Retrieved on 2022-06-24
  • Source Material [www.mail-archive.com]
  • Folksonomies: education programming


    24 JUN 2022

     The Car Example for OOP

    The `Car extends Vehicle` or `Duck extends Bird` type of tutorial obscures more than it illuminates. In good OO programming, we don’t make class hierarchies in order to satisfy our inner Linnaeus. We make class hierarchies in order to simplify the code by allowing different parts of it to be changed independently of each other, and to eliminate duplication (which comes to the same thing). Without any context as to what the code needs to accomplish, you can’t make a judgment about whether...
      1  notes