⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 planemodel.java

📁 一个航空管理系统的例子,可以查询航班,增加代理商等功能,大家需要的话可以看看的.
💻 JAVA
字号:
package com.tarena.abs.model;
/**
 * PlaneModel类用来描述一种飞机机型。
 * 请注意,该类的对象代表的是某种型号的飞机,而不是某个具体的飞机对象。
 * @author tony.tang
 *
 */
public class PlaneModel{
	private String model;//飞机型号
	private int[] seats;//各舱座位数
	private int maxLength;//最大航程
	/**
	 * 
	 * @param model 飞机型号
	 * @param maxLength 最大航程
	 * @param FCS 头等舱座位数
	 * @param BCS 公务舱座位数
	 * @param ECS 经济舱座位数
	 */
	public PlaneModel(String model,int maxLength,int FCS,int BCS,int ECS){
		this.model=model;
		this.seats=new int[3];
		this.seats[0]=FCS;
		this.seats[1]=BCS;
		this.seats[2]=ECS;
		this.maxLength=maxLength;
	}
	public int getMaxLength() {
		return maxLength;
	}
	public String getModel() {
		return model;
	}
	public int getFCS() {
		return seats[0];
	}
	public int getBCS() {
		return seats[1];
	}
	public int getECS() {
		return seats[2];
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -