This document describes experiments and assignments from a practical lab on managing classes. It discusses using the 'this' keyword, overloading constructors, packages and imports. It also covers implementing a UML class diagram for a banking package, compiling and running sample code, and developing the banking package further by adding a Bank class. The conclusions section summarizes the key lessons learned from the exercises.
1. LAPORAN RESMI
PRAKTIKUM 9: MENGELOLA KELAS
1. Percobaan 1 : Menggunakan kata kunci this
Source code:
Output:
Analisa
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
2. 2. Percobaan 2 : Memakai kata kunci this pada overloading constructor
Source code:
Output:
8. Output 2:
Analisa
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
..........................................................................................................................................
6. Tugas 2. Mengembangkan package perbankan dengan tambahan class Bank
Source code: