/**
*定义一个类,一个类是包含两部分:属性和方法
* 1.属性;一个类具有的特性
* 2.方法;一个类具有的功能
*/
public class qwer {
float height;
byte sex;
float weight;
public String neme;
String no;
private String phone;
static void run() {
System.out.println("我是run函数");
}
static int add(int x, int y) {
System.out.println("我是add函数");
return x + y;
}
public static void main(String[] args) {
System.out.println("我是main主函数");
add(x:3, y:5);
run();
}
}