flightschedular.java

来自「用java写的航班订票系统」· Java 代码 · 共 64 行

JAVA
64
字号
package com.tarena.abs.model;
import java.util.Calendar;

public class FlightSchedular {
	private String company;
	private String flightnumber;
	private Calendar startDate;
	private Calendar endDate;
	private String fromCity;
	private String toCity;
	private Calendar fromTime;
	private Calendar toTime;
	private PlaneModel plane;
	private byte schedular;
	private double totalPrice;
	public FlightSchedular(String company, String flightnumber, String fromCity, String toCity, PlaneModel plane, byte schedular, double totalPrice) {
		super();
		this.company = company;
		this.flightnumber = flightnumber;
		this.fromCity = fromCity;
		this.toCity = toCity;
		this.plane = plane;
		this.schedular = schedular;
		this.totalPrice = totalPrice;
	}
	public FlightSchedular() {
		super();
	}
	public String getCompany() {
		return company;
	}
	public Calendar getEndDate() {
		return endDate;
	}
	public String getFlightnumber() {
		return flightnumber;
	}
	public String getFromCity() {
		return fromCity;
	}
	public Calendar getFromTime() {
		return fromTime;
	}
	public PlaneModel getPlane() {
		return plane;
	}
	public byte getSchedular() {
		return schedular;
	}
	public Calendar getStartDate() {
		return startDate;
	}
	public String getToCity() {
		return toCity;
	}
	public double getTotalPrice() {
		return totalPrice;
	}
	public Calendar getToTime() {
		return toTime;
	}
	
}

⌨️ 快捷键说明

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