Podcast
Questions and Answers
What is the Open Closed Principle?
What is the Open Closed Principle?
- A module should be open and closed for both extension and modification.
- A module should be closed for both extension and modification.
- A module should be open for modification but closed for extension.
- A module should be open for extension but closed for modification. (correct)
What is the key to the Open Closed Principle?
What is the key to the Open Closed Principle?
- Encapsulation
- Abstraction (correct)
- Inheritance
- Polymorphism
What does the Liskov Substitution Principle state?
What does the Liskov Substitution Principle state?
- Subclasses should be substitutable for their base classes. (correct)
- Subclasses should inherit from their base classes.
- Subclasses should encapsulate their base classes.
- Subclasses should override their base classes.
What does the LogOn function depend on according to the example?
What does the LogOn function depend on according to the example?
What does the Dependency Inversion Principle emphasize?
What does the Dependency Inversion Principle emphasize?