5 Questions
What is the Open Closed Principle?
A module should be open for extension but closed for modification.
What is the key to the Open Closed Principle?
Abstraction
What does the Liskov Substitution Principle state?
Subclasses should be substitutable for their base classes.
What does the LogOn function depend on according to the example?
Modem interface
What does the Dependency Inversion Principle emphasize?
High-level modules should not depend on low-level modules; both should depend on abstractions.
Test your knowledge of class design principles including the Open Closed Principle, the Liskov Substitution Principle, the Dependency Inversion Principle, and the Interface Segregation Principle. Adapted from a book by Eric J. Braude.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free