Java Web程序设计 高职软件专业 李俊青 模拟题复习题真题习题库 习题库 读程序.docVIP

  • 20
  • 0
  • 约4.73千字
  • 约 5页
  • 2017-08-19 发布于广东
  • 举报

Java Web程序设计 高职软件专业 李俊青 模拟题复习题真题习题库 习题库 读程序.doc

阅读程序写结果 1、class V1{ int a=1; void m1(){ System.out.println(a); } } class E1 extends V1{ int a=2,b=3,c; void m2(){ System.out.println(a); } } class H{ public static void main(String[] s){ E1 e1=new E1(); e1.m1(); e1.m2(); } } 2、class V1{ public int x=2; V1(){ System.out.println(V1); } } class V2 extends V1{ public int x=3; V2(){ System.out.println(V2); } } class H{ public static void main(String[] s){ V1 e1=new V2(); System.out.println(e1.x); } } 3、import??? java.io.*; public? class? abc {???????? public? static? void? main(String args[ ]) ????????? {??? AB? s = new?

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档