JAVA封装
public class PlaneTicket {public int way01(){
}
public static void way02(){
}
public static void main(String[] args){
PlaneTicket p=new PlaneTicket();
p.way01();
way02();
}
}
----------------------------------------------------------------
way01和way02这两个方法这样是否是封装?如果不是该怎么封装?本人对封装怎么用,怎么调感觉好混乱啊!求教育!