boat.java

来自「码头船舶管理系统 适合初学者使用 J2SE的知识」· Java 代码 · 共 48 行

JAVA
48
字号

public class Boat {
	private String id;
	private String length;
	private Customer c;
	
	//构造函数
	public Boat(String i,String l){
		this.id = i;
		this.length = l;
	}
	
	
	
	public Boat(String i,String l,String n,String t, String p,String a){
		this.id = i;
		this.length = l;
		this.c = new Customer(n,t, p, a);
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getLength() {
		return length;
	}
	public void setLength(String length) {
		this.length = length;
	}



	public Customer getC() {
		return c;
	}



	public void setC(Customer c) {
		this.c = c;
	}

	
}

⌨️ 快捷键说明

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