Principles of Class Design Quiz

WellMadeInspiration avatar
WellMadeInspiration
·
·
Download

Start Quiz

Study Flashcards

5 Questions

According to the Open Closed Principle, a module should be:

open for extension but closed for modification

The key to the Open Closed Principle is:

abstraction

According to the Liskov Substitution Principle, subclasses should be:

substitutable for their base classes

The Liskov Substitution Principle ensures that passing an instance of a derived class to a function expecting an instance of its base class:

should be legal

The Open Closed Principle emphasizes on:

extensibility without modification

Test your knowledge of the Open Closed Principle, Liskov Substitution Principle, Dependency Inversion Principle, and Interface Segregation Principle in class design.

Make Your Own Quizzes and Flashcards

Convert your notes into interactive study material.

Get started for free

More Quizzes Like This

Principles of Class Design Quiz
15 questions
Principles of Class Design Quiz
5 questions
Principles of Class Design Quiz
5 questions
Use Quizgecko on...
Browser
Browser