【简答题】
执行下列程序,了解静态内部类。 class RedCowForm { static class RedCow{ void speak() { System.out,println("我是红牛"); } } } class BlackCowForm { public static void main (String args[]) { RedCowForm.RedCow red= new RedCowForm.RedCow(); red.speak(); } }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
收藏
举报
参考答案:
参考解析: