summaryrefslogtreecommitdiff
path: root/oop/09-polymorphism/PremiumCustomer.java
blob: a098af58b6156795f02573d332ba820eb73bbf1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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;
	}

	
}