use of package

mac2022-07-05  37

package lxx;

public class Car{

  private byte cubage=100;

  private viod startIsEnough(){

  if(cubage>80){

  System.out.println("cubage is enough,go!")

}else{System.out.println("cubage isn't enough,stop!")}

}

}

public lxx{

public static void main(String[] args){

  Car c=new Car;

  c.startIsEnough();

}

}

转载于:https://www.cnblogs.com/lily-Jerry/p/4428215.html

最新回复(0)