Which of the following statements describe the Dependency Inversion Principle of the SOLID object-oriented design approach?

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

Options:

  1. The details should depend on abstractions
  2. High-level and low-level modules should depend on abstractions
  3. Parent classes should know the child classes
  4. High-level modules shouldn’t depend on low-level modules

1 Answers
Best Answer
Anonymous answered 3 years ago
  1. The details should depend on abstractions
  2. High-level and low-level modules should depend on abstractions
  3. High-level modules shouldn’t depend on low-level modules