This week I read two more chapters of Sadi Mertz’s book . The concept of inheritance at its surface is straightforward- a mechanism that delegates the transmission of messages among classes. You have a superclass that communicates with its subclasses but each one of these subclasses can only communicate with the superclass.
Think of a raw turkey meat as a superclass. From this superclass you can create subclasses with suggestive and yummy names such as baked turkey, grilled turkey, fried turkey, and the like (As of the time of this writing, it is the post Thanksgiving weekend so naturally I am eating a good amount of left over turkey).
Continue reading “Inheritance”