CS Electrical And Electronics
@cselectricalandelectronics

Which of the following statements describe the Liskov Substitution Principle of the SOLID object-oriented design approach?

All QuestionsCategory: Cpp LanguageWhich of the following statements describe the Liskov Substitution Principle of the SOLID object-oriented design approach?
Anonymous asked 3 years ago

Options:

  1. Child classes inherit the methods and properties of the parent
  2. Child classes are of a different type to their parent
  3. Subclasses are more detailed implementations of a parent class
  4. You should be able to substitute a child class for a parent without losing any functionality
  5. The subclass stresses a “has a” relationship with the parent class
2 Answers
Best Answer
Anonymous answered 3 years ago

The correct answers are:

  1. Child classes inherit the methods and properties of the parent
  2. Subclasses are more detailed implementations of a parent class
  3. You should be able to substitute a child class for a parent without losing any functionality
KauaLe answered 3 years ago

You should be able to substitute a child class for a parent without losing any functionality Child classes inherit the methods and properties of the parent Subclasses are more detailed implementations of a parent class