摘要:
package com.study; public class Study { public static void main(String[] args) { GirFriend girFriend01 = GirFriend.getInstance(); GirFriend girFriend0 阅读全文
摘要:
public class Test02 { public static void main(String[] args) { //1.创建对象 Person p1 = new Person(); //2.调用方法 int returnRes = p1.getSum(10,20); System.ou 阅读全文
摘要:
Person p1 = new Person(); p1.age = 10; p1.name = "小明"; Person p2 = p1; System.out.println(p2.age); //1.先加载Person类信息(只会加载一次) Person p1 = new Person(); 阅读全文