beg_end_sta.java
来自「几年前写的一个公交查询系统」· Java 代码 · 共 49 行
JAVA
49 行
//beg_end_sta.java
//该类用于描述起始车站
public class Beg_end_sta
{
Station begining;
Station ending;
public Beg_end_sta( Station begining ,Station ending )
{
this.begining=new Station();
this.begining=begining;
this.ending=new Station();
this.ending=ending;
}
public Beg_end_sta()
{
this.begining=new Station();
this.ending=new Station();
}
public void set_be_sta( Station begining ,Station ending )
{
this.begining=begining;
this.ending=ending;
}
public Beg_end_sta get_be_sta( )
{
return this;
}
public Station getBegSta()
{
return this.begining;
}
public Station getEndSta()
{
return this.ending;
}
public String getBegName()
{
return this.begining.getname();
}
public String getEndName()
{
return this.ending.getname();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?