设类A,类B,类B中有非静态方法a,静态方法b
一、非静态方法
在A中
B testB=new B();
testB.a();
二、静态方法
B.b();
posted on 2020-09-07 14:25 迷途行者 阅读(3247) 评论(0) 编辑 收藏 举报