3.2 Instance Variables, set Methods and get Methods
In this section, you’ll create two classes—Account
(Fig. 3.1) and AccountTest
(Fig. 3.2). Class AccountTest
is an application class in which the main
method will create and use an Account
object to demonstrate class Account
’s capabilities.
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.