image

CHAPTER

6

Static Modifier and Interfaces

imagen the previous chapters, you studied several important aspects of object-oriented programming. You learned to declare and use a class, extend its functionality with the help of inheritance, and so on. Java allows multiple levels in an inheritance hierarchy. You learned how the superclass objects are constructed when a subclass object is created. You also learned the use of the super keyword in calling the superclass methods and using superclass fields in subclasses. The access to the various members of a ...

Get Java Programming 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.