c++ Programming Glossary: liskov
Deriving an abstract class from concrete class http://stackoverflow.com/questions/310408/deriving-an-abstract-class-from-concrete-class you're probably safe because you haven't violated Liskov substitutability . A Peach IS A Apple. If you own the Apple.. derived classes of Tomato must do in order not to violate Liskov substitutability. The function you are overriding in Berry let's..
Testing a c++ class for features http://stackoverflow.com/questions/3336859/testing-a-c-class-for-features 'e' for the same reason as 'd' PLUS that it violates the Liskov Substitution Principle. If a client needs to check that a class..
Inheritance or composition: Rely on “is-a” and “has-a”? http://stackoverflow.com/questions/453738/inheritance-or-composition-rely-on-is-a-and-has-a is to enhance your is a has a heuristic with the Liskov Substitution Principle . To check whether an inheritence relationship.. whether an inheritence relationship complies with the Liskov Substitution Principle ask whether clients of a base class can.. and therefore the inheritence relationship violates the Liskov Substitution principle. By the way the example came from the..
Inheritance: 'A' is an inaccessible base of 'B' http://stackoverflow.com/questions/9661936/inheritance-a-is-an-inaccessible-base-of-b inheritance is not necessarily intended to follow the Liskov substitution principle . Public inheritance asserts that a derived..
|