Langsung ke konten utama

tugas 1

8.1 CLASS TIME 1

Time 1

8.2 TES TIME1

TIme1 test



Output

8.3 Controlling Acces to Members

akan terjadi error

8.4 Referring to the Current Object's Members with the this Reference

time 2


output

8.5 Time2 class with overloaded constructors

testime2

8.6 Overloaded constructors used to initialize Time2 objects

tes waktu

output

Komentar

Postingan populer dari blog ini

Class Date

Class Date mendeklarasikan variabel month, day, dan year untuk merepresentasikan sebuah tanggal. Didalam class date akan ada dua waktu (waktu sekarang dan waktu yang lain) yang dimana waktu yang lain dapat di setting sendiri sesuai kebutuhan. 1. Date class Declaration 2. Employee class with reference to other object 3. Composition Demonstration 4. Declaring an enum type with constructor and explicit in 5. Testing enum type book 6. Static variable used to maintain a count of the number of employee objects in memory 7. Static member demonstration

Overloading dan Overriding

1. class myclass output: Contoh Overriding 1. Class binatang 2. Class mamalia 3. Class Penggunaan Overriding Output : Circle 1. Class circle 2. Class lingkaran Output Student 1. Class Student 2. Class Siswa Output Penggajian 1. Class pegawai 2. Class staf 3. Class dosen 4. Class Daftar Gaji 5. Class Program utama Output :