Chapter 7
Breaking a Large Program into Objects
IN THIS CHAPTER
Understanding object-oriented programming
Clarifying encapsulation, inheritance, and polymorphism
Explaining design patterns
Using object-oriented languages
Providing real-life programming examples
Breaking a large program into multiple subprograms makes programming easier. Instead of trying to write a single, monolithic chunk of code, you just have to write small subprograms that work as building blocks that you can stack together to create a much larger program.
Unfortunately, computer scientists found that just dividing a large program into multiple subprograms didn’t magically solve all the problems of creating software. Some of the most prominent problems of subprograms include
- Interconnectedness: Instead of acting as independent entities, subprograms are often allowed to interfere with other parts of a program. Not only does this cause problems in tracking down bugs (problems), but it also prevents subprograms ...
Get Beginning Programming All-in-One For Dummies, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.