diff options
| author | Kamal Wickramanayake <kamal@inbox.lk> | 2026-02-22 19:43:58 +0530 |
|---|---|---|
| committer | Kamal Wickramanayake <kamal@inbox.lk> | 2026-02-22 19:43:58 +0530 |
| commit | baaba4a281b7d54e6b5d7767989c303b854b6932 (patch) | |
| tree | 16201b64e9c8f20d7fa394c715f4ca5df51e9e08 /oop/05-polymorphism/Customer.java | |
| parent | ae4cf7c9f0a0b90d02166b43402e67b7d4ad4dca (diff) | |
Directory rename
Diffstat (limited to 'oop/05-polymorphism/Customer.java')
| -rw-r--r-- | oop/05-polymorphism/Customer.java | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/oop/05-polymorphism/Customer.java b/oop/05-polymorphism/Customer.java new file mode 100644 index 0000000..56b0f7b --- /dev/null +++ b/oop/05-polymorphism/Customer.java @@ -0,0 +1,60 @@ +public class Customer { + private int customerNumber; + private String name; + private String address; + private String phone; + private String mobile; + + public Customer() { + } + + public Customer(int customerNumber, String name, String address, + String phone, String mobile) { + this.customerNumber = customerNumber; + this.name = name; + this.address = address; + this.phone = phone; + this.mobile = mobile; + } + + public int getCustomerNumber() { + return customerNumber; + } + + public void setCustomerNumber(int customerNumber) { + this.customerNumber = customerNumber; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public String getMobile() { + return mobile; + } + + public void setMobile(String mobile) { + this.mobile = mobile; + } + +} |
