Explain the principle of Subsumption, also known as the Liskov Substituiton Principle.
From Joshua Bloch and Neal Gafter's Java Puzzlers book:
This principle says that everything you can do with a base class, you can also do with a derived class. Subsumption is an integral part of the natural mental model of object-oriented programming. Whenever it is violated, a programm becomes more difficult to understand.
Sunday, November 13, 2005
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment