When you write object-oriented programs, you’ll often want to add some new behavior to an existing class: you can always create new hoops for objects to jump through. For example, you might have designed a new kind of tire, so you’d subclass Tire and add the new cool stuff. When you want to add behavior to an existing class, you’ll often create a subclass.
KeywordsMemory Management Class Extension Instance Variable Private Method Public Interface
Unable to display preview. Download preview PDF.