-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBid.java
31 lines (27 loc) · 920 Bytes
/
Bid.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
//David Nguyen - The class Bid represents a bid that a contractor makes for a contract//
public class Bid{
//The contract field represents the contract name for the bid
Contract contract;
//The contractor field represents the contractor's name
Contractor contractor;
//The value field represents the value of the bid
Double value;
//A constructor that creates a bid//
public Bid (Contract contract, Contractor contractor, double value) {
this.contract = contract;
this.contractor = contractor;
this.value = value;
}
//A method that returns the contract for the bid
public Contract contract() {
return contract;
}
//A method that returns the contractor for the bid
public Contractor contractor() {
return this.contractor;
}
//A method that returns the value of the bid//
public double value() {
return this.value;
}
}