-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSCoops2.java
81 lines (73 loc) · 1.66 KB
/
SCoops2.java
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*class Product
{
private int itemno;
private String name;
private double price;
private int qty;
public Product(int itemno)
{
itemno=itemno;
}
public Product(int itemno,String name)
{
itemno=itemno;
name=name;
}
public Product(int itemno,String name,double price,int qty)
{
itemno=itemno;
name=name;
setPrice(price);
setQty(qty);
}
public int getItemno(){return itemno;}
public String getName(){return name;}
public double getPrice(){return price;}
public int getQty(){return qty;}
public void setPrice(double price)
{
this.price=price;
}
public void setQty(int qty)
{
this.qty=qty;
}
}
class Customer
{
private String custId;
private String name;
private String address;
private String phno;
public Customer(String custId,String name)
{
this.custId=custId;
this.address=name;
}
public Customer(String custId,String name,String address,String phno)
{
this.custId=custId;
this.address=name;
setAddress(address);
setPhno(phno);
}
public String getCustId(){return custId;}
public String getName(){return name;}
public String getAddress(){return address;}
public String getPhno(){return phno;}
public void setAddress(String address)
{
this.address=address;
}
public void setPhno(String phno)
{
this.phno=phno;
}
}
public class SCoops2
{
public static void main(String[] args)
{
}
}
*/