首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
test03专题
day7 test03
package day7;class Person1{private String name;public Person1(){System.out.println("无参的Person()被调用了");}public Person1(String name){this();//调用本类中其他构造函数System.out.println("有参的Person()被调用了");this.name
阅读更多...
day6 test03
package day6;class Fruit{public void qupi(){}}class Person{public void eat(Fruit f){f.qupi();System.out.println("eating!!!");}}public class test03 {public static void main(String args[]){Person p
阅读更多...