Chapter 2. Encapsulation: Learn to Keep the Details to Yourself

Hopefully, Day 1, “Introduction to Object Oriented Programming,” piqued your interest, and you probably have many questions. As you can guess, there is a lot more to object-oriented programming than a few simple definitions. When taking an OO approach to software development, you can’t simply plod and hack your way along. Instead, you must have careful planning and a sound grounding in the important theories behind OOP. Unfortunately, there is no practical way to become an OOP expert in a few years, let alone in 21 days! Instead, you need to step back and ask, “What am I trying to accomplish?” Are you trying to become a theoretical expert or a practical practitioner? You see, you ...

Get Sams Teach Yourself Object Oriented Programming in 21 Days, Second 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.