其他分享
首页 > 其他分享> > 3.28类

3.28类

作者:互联网

package com.company;

public class lei {
// 属性
String name;
int age;
char sex;
double high;
double height;
boolean shifuoDanshen;

//方法
public  void eat(){

    System.out.println("吃饭");
}
public  static  void  sleep(){
    System.out.println("睡觉");
}
public  static  void dodo(){
    System.out.println("打豆豆");
}

}

标签:void,System,static,println,3.28,public,out
来源: https://blog.csdn.net/qq_52167484/article/details/115466630