Files
BUT2FICPOO/TP1/Liaison.java

14 lines
264 B
Java
Raw Normal View History

2025-12-09 21:25:47 +01:00
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;
}
}