约翰·波拿巴的博客父类能调用子类的方法吗?答:能。...● 父类调用子类的静态方法。案例展示:package com.ywq;public class Test2{public static void main(String[] args){Son son = new Son();Father father=new...
王允臣的博客父类能调用子类的方法吗?答:能。...● 父类调用子类的静态方法。案例展示:package com.ywq;public class Test2{public static void main(String[] args){Son son = new Son();Father father=new...