Ray's playground

 

Item 32: Make sure public inheritance models "is-a."(Effective C++)

  • Public inheritance means "is-a." Everything that applies to base classes must also apply to derived classes, because every derived class object is a base class object.

posted on 2011-04-02 00:25  Ray Z  阅读(170)  评论(0编辑  收藏  举报

导航