B
B
BonBon Slick2017-11-13 09:39:20
OOP
BonBon Slick, 2017-11-13 09:39:20

How many OOP principles are there, not just the main ones?

solid? (single responsibility, open-closed, Liskov substitution, interface segregation and dependency inversion)
Wiki
Encapsulation, polymorphism, abstraction and inheritance? (which is written everywhere)
I think the latter are like the main ones, but they have some similarities in my opinion with the first. So the question arose, how many principles in general? Or am I misunderstanding something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-11-13
@BonBonSlick

The principles of OOP are encapsulation, inheritance, polymorphism, and abstraction. The rest of the principles simply act as guidelines for creating better code within OOP. In addition to SOLID, there is also:

  • LOD
  • Inversion of Control
  • CQS
  • GRASP patterns (as for me, these are still more principles than patterns)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question