Swipe to navigate through the chapters of this book
To protect its data and methods from other parts of a program, an object isolates or encapsulates its code. Encapsulation is one prime advantage of object-oriented programming because it creates self-contained code that you can easily modify or replace without affecting any other part of a program.
Please log in to get access to this content
To get access to this content you need the following product:
- Inheritance, Polymorphism, and Extending Classes
- Sequence number
- Chapter number
- Chapter 14