Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

Chapter 4: Inheritance > Why Use Inheritance? - Pg. 57

Chapter 4 w Inheritance hen you write an object-oriented program--and we hope you're going to write a lot of them--the classes and objects you create have relationships with each other. They work together to make your program do its thing. Two aspects of OOP are most important when dealing with relationships between classes and objects. The first is inheritance, the subject of this chap-