-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContractor.java
More file actions
44 lines (36 loc) · 1.3 KB
/
Contractor.java
File metadata and controls
44 lines (36 loc) · 1.3 KB
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
/*
Authors: Nick Barth, Nick Garcia, Kyle Bowles, Owen Leonard, Michael Gostomoski
Date: 11/18/2018
Assignment: Group Project Part 1 - Contractor 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 Contractor extends Customer{
public String businessName;
public static int contractorCount;
public int contractorID;
Contractor(String firstName, String lastName, String businessName, String address, String phoneNumber, String emailAddress)
{
super(firstName, lastName, address, phoneNumber, emailAddress);
if(!(businessName.equals("")))
{
this.businessName = businessName;
}
this.contractorID = contractorCount;
contractorCount++;
}
public String getBusinessName(){
return businessName;
}
public void setBusinessName(String businessName){
this.businessName = businessName;
}
@Override
public String toString(){
return (this.getName() + " | Business Name: " + this.businessName + " | Contractor ID: " + this.contractorID);
}
}