From baaba4a281b7d54e6b5d7767989c303b854b6932 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Sun, 22 Feb 2026 19:43:58 +0530 Subject: Directory rename --- oop/05-polymorphism/PremiumCustomer.java | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 oop/05-polymorphism/PremiumCustomer.java (limited to 'oop/05-polymorphism/PremiumCustomer.java') diff --git a/oop/05-polymorphism/PremiumCustomer.java b/oop/05-polymorphism/PremiumCustomer.java new file mode 100644 index 0000000..a098af5 --- /dev/null +++ b/oop/05-polymorphism/PremiumCustomer.java @@ -0,0 +1,43 @@ +public class PremiumCustomer extends Customer { + + private String category; + private String desction; + + + public PremiumCustomer() { + } + + public PremiumCustomer(int customerNumber, String name, String address, + String phone, String mobile) { + super(customerNumber, name, address, phone, mobile); + } + + + public PremiumCustomer(int customerNumber, String name, String address, + String phone, String mobile, String category, String desction) { + super(customerNumber, name, address, phone, mobile); + this.category = category; + this.desction = desction; + } + + public PremiumCustomer(String category, String desction) { + super(); + this.category = category; + this.desction = desction; + } + + public String getCategory() { + return category; + } + public void setCategory(String category) { + this.category = category; + } + public String getDesction() { + return desction; + } + public void setDesction(String desction) { + this.desction = desction; + } + + +} -- cgit v1.2.3