匿名对象的理解 /** * 匿名对象: * 匿名对象:没有名字的对象,只能调用一次(就像创建了一直船,没有绳子牵着, * 他就溜了) */ public class AnonymousObject { public static void main(String[] args) { //People@1b6d3586 System.out.println(new People()); //People@4554617c System.out.println(new People()); } } 由于今天到面试,再加上学习考试,在加上洗澡,只能更新这个了 坚持每天更新一到两篇,fighting