I know of OOP (Object oriented programming) and SOLID.
and
However, I'm not sure what the exact differences are, and if SOLID is a subset of OOP. Can anyone help explain the differences?
The four principles of object-oriented programming are encapsulation, abstraction, inheritance, and polymorphism.
S - Single-responsiblity Principle. O - Open-closed Principle. L - Liskov Substitution Principle. I - Interface Segregation Principle.
SOLID is an acronym that stands for five key design principles: single responsibility principle, open-closed principle, Liskov substitution principle, interface segregation principle, and dependency inversion principle. All five are commonly used by software engineers and provide some important benefits for developers.
Encapsulation, inheritance, and polymorphism are usually given as the three fundamental principles of object-oriented languages (OOLs) and object-oriented methodology. These principles depend somewhat on the type of the language.
the answer is simple:
PS: I don't understand the downvotes to your question, since it's legitimate, can be answered clearly and is confusing to many OO newcomers. Upvote from me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With