O'Reilly logo

Java Programming by Poornachandra Sarang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

image

CHAPTER

5

Object Creation and Member Visibility

imagen the last chapter, we covered inheritance in Java. Inheritance allows you to extend the functionality of existing classes. In this chapter, you learn what happens when a subclass is instantiated. Without explicitly creating a superclass object, how can a subclass object access its members? You learn the object-creation process during the instantiation of a subclass. The main motive behind understanding this is to gain control over the object-initialization process. You will understand how to call ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required