+ 1
OOP concepts in one simple program
Hello everyone. I am wondering if someone can put all possible OOP elements in one single program. So that we understand the practical use of OOP in real projects. All that I have learnt about OOP is individual examples of each concepts. I want see how I can use them effectively in my coding. **Please use Python, Java or Javascript** Thanks.
2 Answers
+ 1
There are a lot of overlapping areas when we talk about OOP concepts, for example a class inheriting from other class is not just an example of inheritance but also encapsulation.
So it might end up confusing you.
+ 1
While jump into design patters the OOP complexity grows dramatically
OOP facts:
*encapsulation & accessibility
*abstraction
*composition
*inheritance
*polymorphism
*modularity
*instantiation
those are the main, but there are much more, every branch split in branches with more concrete concepts.
Here a detailed list:
https://en.m.wikipedia.org/wiki/Index_of_object-oriented_programming_articles