-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMedicalOrder.java
More file actions
33 lines (30 loc) · 890 Bytes
/
Copy pathMedicalOrder.java
File metadata and controls
33 lines (30 loc) · 890 Bytes
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
/**
* Write a description of class MedicalOrder here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MedicalOrder extends Order
{
//CONSTRUCTOR DE LA SUBCLASE MedicalOrder
public MedicalOrder (String sendingName, Location location, Location destination, int deliveryTime,
double weight, String destinationName, Urgency urgency) {
super(sendingName, location, destination, deliveryTime,
weight, destinationName, null, urgency);
}
/**
* @return A null value for the surcharge.
*/
@Override
public int charge () {
return 0;
}
/**
* Return an integer number that the delivery person must increase to the order.
* @return An integer value.
*/
@Override
public int calculateEvaluationDP () {
return 15;
}
}