previous | index | next

Implementing Subclasses

Top-level form of the OxfordShirtInfo class definition:
  class OxfordShirtInfo: public ItemInfo { ... }
The part in red indicates that:
Note that although OxfordShirtInfo cannot access the private instance variables price and color directly, it can get their values through the public getPrice and getColor accessor methods.

previous | index | next