摘要:
今天学了什么 基类 Point 和派生类 Rectangle Point类: package rectangle; public class Point { protected double x,y; public Point(double x,double y) { this.x=x; this. 阅读全文
摘要:
今天学了什么 用Person类设计Student类和Teacher类 Person类: package person; public class Person { protected String name,sex; protected int age; public void setname(St 阅读全文
摘要:
今天学了什么 以点类和圆类设计球类 点类: package sphere; public class Point { protected double x,y; public Point(double x,double y){ this.x=x; this.y=y; } public void se 阅读全文
摘要:
今天学了什么 完成了StudentManager1类(将StudentManager类的方法改为有参方法) 在main方法中写好了数据,方便测试效果。 package test00; import java.util.Scanner; public class StudentManager1 { i 阅读全文