-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPath.java
More file actions
23 lines (18 loc) · 723 Bytes
/
Copy pathIPath.java
File metadata and controls
23 lines (18 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// --== CS400 Project Three File Header ==--
// Name: Bill Zhu
// CSL Username: bzhu
// Email: wlzhu@wisc.edu
// Lecture #: 002 @1:00pm
// Notes to Grader:
/*
* Instances of classes that implement this interface represent a single airport and its respective
* * information.
*/
public interface IPath {
// constructor args (String name, String destination, int distance)
// instance fields include destination airport and origin airport, as well as an integer variable
// to store the distance between the two airports
public String getOrigin(); // Retrieves name of airport
public String getDestination(); // Retrieves name of destination airport
public int getPathCost(); // Retrieves path distance
}