December 2014
Beginner
864 pages
24h 5m
English
You saw an example of implementing an interface in the previous chapters. You can read more about interfaces in the first section of this chapter—what they are for, why you might want to write one, and how to write one. The second section of this chapter describes the way in which you can derive one class from another—that is, how a subclass can inherit fields and methods from a superclass. You will learn that all classes are derived from the Object class and how to modify the methods that a subclass inherits from superclasses. This section also covers interface-like abstract classes. Each section ends with questions and exercises to test your understanding.
Read now
Unlock full access