构造函数

xiaoxiao2022-06-11  71

class Top{ public Top(String s){System.out.print("B");} } public class Bottom2 extends Top{ public Bottom(String s){System.out.print("D"); public static void main(String[] args){ new Bottom2("C"); System.out.println(" "); } } 请说说这题运行结果是什么,并解释下原因??
转载请注明原文地址: https://www.6miu.com/read-4931337.html

最新回复(0)