“Is a” vs “Has a” relationship

Snap 2014-04-22 at 20.13.07

Snap 2014-04-22 at 20.18.33

  • Methods and variables defined in a subclasses are only available inside the subclass and it’s subclasses
  • A subclass becomes the superclass for its subclasses
  • Snap 2014-04-22 at 20.23.24

    Snap 2014-04-22 at 20.26.01

    Important: A subclass has NO ACCESS to private instance variables of it’s superclass.

    Leave a Reply