Summary
OOP is a structural device, rather than the act of making objects. Having a better structure lets you compartmentalize your code by using distinctions that allow for more efficient assembling, interchangeability, and readable language. On the other hand, OOP can add complexity to a system, and it generally takes patience, forethought, and—most important—time to perfect. All in all, using classes properly and putting thought into each class reflects the flexibility you aim for, but you must understand the importance of encapsulation, polymorphism, inheritance, and data hiding.
The largest misconception about OOP is the belief that to be object-oriented, you must be working with objects. Working with objects merely for the sake of appearing ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access