0% found this document useful (0 votes)
19 views1 page

Revisi Uml

The document defines three classes: Customer_Warnet, CW_NonMember, and CW_Member. Customer_Warnet is an abstract base class with string and integer properties to store customer name, gender, phone number. CW_NonMember and CW_Member extend this class with additional properties and methods for non-member and member customers of a warnet (internet cafe) such as package prices and discounts. Both subclasses implement abstract methods from the base class like displaying voucher menus.

Uploaded by

Dicky Rizhaldi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

Revisi Uml

The document defines three classes: Customer_Warnet, CW_NonMember, and CW_Member. Customer_Warnet is an abstract base class with string and integer properties to store customer name, gender, phone number. CW_NonMember and CW_Member extend this class with additional properties and methods for non-member and member customers of a warnet (internet cafe) such as package prices and discounts. Both subclasses implement abstract methods from the base class like displaying voucher menus.

Uploaded by

Dicky Rizhaldi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Customer_Warnet CW_NonMember CW_Member

+ String : nama, jenisKelamin + private int : jumlahJam + private int : potonganHarga

+ int : noTelepon + private int : harga + private String : id

+ private int : paket3jam + CW_Member()


+ Customer_Warnet()
+ private int : paket6jam + CW_Member(String nama, String
+ Customer_Warnet(String nama, String
jenisKelamin, String noTelepon) + CW_NonMember() jenisKelamin, int noTelepon, int
jumlahJam, int harga, int paket3jam, int
+ String getNama() + CW_NonMember(String nama, String
paket6jam, int potonganHarga, String id)
jenisKelamin, int noTelepon, int
+ String getJenisKelamin() jumlahjam, int harga, int paket3jam, int + String getId()
paket6jam)
+ int getNoTelepon() + int getPotonganHarga()
+ int JumlahJam()
+ abstract String MenuVoucher() # int Total(int harga, int potonganHarga)
+ int getHarga()
+ abstract String V_Perjam() # int Total(int paket3jam, int
+ int getPaket3jam() potonganHarga, String namapaket3)
+ abstract String V_Paket()
+ int getPaket6jam() # int Total1(int paket6jam, int
potonganHarga)
+ int Total()
+ String MenuVoucher()
+ int Total(int Paket3jam)
+ String V_Perjam()
+ int Total1(int Paket6jam)
+ String V_Paket()
Info Admin + String MenuVoucher()
+ void Nama()
+ String V_Perjam()
+ void InfoWarnet()
+ String V_Paket()
+ abstract void InfoWarnet() + abstract void Nama()
+ void Nama()

+ void InfoWarnet()

You might also like