-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVendor.java
59 lines (47 loc) · 1.55 KB
/
Vendor.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
/*
Authors: Nick Barth, Nick Garcia, Kyle Bowles, Owen Leonard, Michael Gostomoski
Date: 11/18/2018
Assignment: Group Project Part 1 - Vendor CDF
Section: 2
Purpose: An application to be used by a home repair and supply shop which
can create and edit customers/contractors, create and edit vendors,
create and edit inventory items,
enter sales, print receipts, and print reports.
*/
package CIS331GroupProject;
public class Vendor {
private String businessName;
private String businessAddress;
private String phoneNumber;
public int vendorID;
public static int vendorCount;
Vendor(String businessName, String businessAddress, String phoneNumber){
this.businessName = businessName;
this.businessAddress = businessAddress;
this.phoneNumber = phoneNumber;
this.vendorID = vendorCount;
vendorCount++;
}
public String getBusinessName(){
return this.businessName;
}
public void setBusinessName(String businessName){
this.businessName = businessName;
}
public String getBusinessAddress(){
return this.businessAddress;
}
public void setBusinessAddress(String businessAddress){
this.businessAddress = businessAddress;
}
public String getPhoneNumber(){
return this.phoneNumber;
}
public void setPhoneNumber(String phoneNumber){
this.phoneNumber = phoneNumber;
}
@Override
public String toString(){
return (this.getBusinessName() + " | ID: " + this.vendorID);
}
}