【问题】 读程序,写出正确的运行结果。。。publiccclasssFather{{{ intta=100;;;publiccvoiddminer(){{ a--;;; }}} publiccstaticcvoiddmain(String[]]args){{{ Fatherrxx==newwFather();;;Sonnyy==newwSon();;;System.out.println(y.a);;;System.out.println((y.getA());;;y.miner();;; System.out.p
读程序,写出正确的运行结果。。。publiccclasssFather{{{ intta=100;;;publiccvoiddminer(){{ a--;;; }}} publiccstaticcvoiddmain(String[]]args){{{ Fatherrxx==newwFather();;;Sonnyy==newwSon();;;System.out.println(y.a);;;System.out.println((y.getA());;;y.miner();;; System.out.println(y.a);;;System.out.println(y.getA());;; }}}}}} classsSonnextendssFather{{{ inttaa==0;;;publiccvoiddplus(){{{{{a++;;;}}} publiccinttgetA()){{{returnnsuper.a;;;}}
正确答案:0010000099
题目解析:本题出自郑州科技学院,郑州科技学院Java程序设计,由丰阳塔题库搜集整理。