Section 3.2 Instance Variables, set Methods and get Methods

• Each class you create becomes a new type that can be used to declare variables and create objects.

• You can declare new classes as needed; this is one reason Java is known as an extensible language.

Get Java™ How To Program (Early Objects), Tenth Edition 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.