14 lines
264 B
Java
14 lines
264 B
Java
public class Liaison{
|
|
private Station debut;
|
|
private Station fin;
|
|
private Ligne ligne;
|
|
|
|
public Liaison(Station s1,Station s2,Ligne l){
|
|
this.debut = s1;
|
|
this.fin = s2;
|
|
this.ligne = l;
|
|
}
|
|
public String toString(){
|
|
return this.debut+" -> "+this.fin;
|
|
}
|
|
} |