📄 building.java
字号:
package building;
import java.lang.*;
import java.util.*;
import java.sql.*;
import javax.sql.*;
public class Building {
private int Id = 0 ;
private String info = null ;
private String address = null ;
private String detail = null ;
private String model = null ;
private int floor = 0 ;
private float area = 0 ;
private float price = 0 ;
public Building(){
}
/*
* 楼房Id set and get
*/
public void setId(int Id){
this.Id = Id ;
}
public int getId(){
return (Id) ;
}
/*
* 出售状态info set and get
*/
public void setInfo(String info){
this.info = info ;
}
public String getInfo(){
return (info) ;
}
/*
* 所处地段address set and get
*/
public void setAddress(String address){
this.address = address ;
}
public String getAddress(){
return (address);
}
/*
* 楼房详细的说明和描述detail set and get
*/
public void setDetail(String detail){
this.detail = detail ;
}
public String getDetail(){
return (detail);
}
/*
* 楼房类型model set and get
*/
public void setModel(String model){
this.model = model ;
}
public String getModel(){
return (model) ;
}
/*
* 楼房的层数floor set and get
*/
public void setFloor(int floor){
this.floor = floor ;
}
public int getFloor(){
return (floor) ;
}
/*
* 楼房面积area set and get
*/
public void setArea(float area){
this.area = area ;
}
public float getArea(){
return (area) ;
}
/*
* 单位面积价格price set and get
*/
public void setPrice(float price){
this.price = price ;
}
public float getPrice(){
return (price) ;
}
/**
*
*/
}//End of class Building
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -