2023年9月13日
摘要: 4 Java中的类(基础详解)4.1 类 = 字段+方法class person{ //name和age属于类中的字段 String name; int age; //sayhello()函数属于类的方法 void sayhello(){ System.out.println("嗨嘿嗨"); }}4 阅读全文
posted @ 2023-09-13 22:10 杨申龙 阅读(12) 评论(0) 推荐(0)