摘要:
代码: public class Test { public static void main(String[] args) { Foo obj1=new Foo(); Foo obj2=new Foo(); System.out.println(obj1==obj2); }}class Foo{ 阅读全文
posted @ 2022-11-12 23:15
XieLumeng
阅读(22)
评论(0)
推荐(0)
摘要:
代码: public class ClassAndObjectTest { public static void main(String[] args) { //创建类的实例,定义一个对象变量引用这一实例 MyClass obj = new MyClass(); //通过对象变量调用类的公有方法 o 阅读全文
posted @ 2022-11-12 23:12
XieLumeng
阅读(36)
评论(0)
推荐(0)
摘要:
代码: // MethodOverload.java// Using overloaded methods public class MethodOverload { public static void main(String[] args) { System.out.println("The s 阅读全文
posted @ 2022-11-12 20:36
XieLumeng
阅读(43)
评论(0)
推荐(0)

浙公网安备 33010602011771号