This document discusses exercises exploring encapsulation and creating Java packages. It describes modifying an Account class to make its fields private and add access methods, moving the Account and TestAccount classes to packages, and compiling and running the updated TestAccount class.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
11 views9 pages
Lab2 ProgamacionII
This document discusses exercises exploring encapsulation and creating Java packages. It describes modifying an Account class to make its fields private and add access methods, moving the Account and TestAccount classes to packages, and compiling and running the updated TestAccount class.