Subclasses should be substitutable for their base classes. Derived classes should be substitutable for their base classes. That is, a user of a base class should continue to function properly if a derivative of that base class is passed to it.
This website is developed and maintained by Sanjeev Kumar. The views expressed on this website are his own and do not necessarily reflect the views of his former, current or future employers. Sanjeev also blogs about technology, travel and other things that he is passionate about on his blog.
You can follow him on these social networks.