Effective C++ Ed. 3rd: Item 32. Make sure public inheritance models "is-a"

  • Where-ever object of base class can be used, derived class object can also be used but vice-versa is not true.
  • Public inheritance asserts that everything that applies to base class objects- everything! - also applies to derived class objects.
prev | next

Cheers

    No comments:

    Post a Comment