实验15分析和总结.docxVIP

  • 2
  • 0
  • 约小于1千字
  • 约 2页
  • 2023-03-11 发布于上海
  • 举报
实验十五 学 号实验地点 姓 名指导教师 实验内容: 专业、班时间 利用所学布局管理器的知识,设计如下图所示的计算器界面。(各组件间的间距是 5 个像素) 阅读下列程序,请写出该程序的输出结果。class B{ int b; B(int x){ b=x; System.out.println(b=+b); } } class A extends B{ int a; A(int x,int y){ super(x); a=y; System.out.println(b=+b+,a=+a); } } public class Test{ public static void main(String[]args){ A obj=new A(2,3); } } 阅读下列程序,请写出该程序的输出结果。public class A { int m = 1; static int n = 3; static int n = 3; public static void main(String[] args) { A obj 1 = new A(); A obj2 = new A(); Objl.m *= 2; objl.n *= 3; obj2.m += 1; obj2.n += 6; System.out.println(obj 1.m= + obj 1.m); System.out.pri

文档评论(0)

1亿VIP精品文档

相关文档