2019年5月16日
摘要: package 多态类运用; abstract class MyShape{ public abstract void getArea(); public abstract void getLength(); } class Circla extends MyShape{ public static 阅读全文
posted @ 2019-05-16 01:40 18软工五班罗小杨 阅读(143) 评论(0) 推荐(0) 编辑
  2019年5月15日
摘要: package 抽象类运用; abstract class MyShape{ String name; public MyShape(String name) { this.name = name; } public abstract void getArea(); public abstract 阅读全文
posted @ 2019-05-15 00:29 18软工五班罗小杨 阅读(134) 评论(0) 推荐(0) 编辑
  2019年5月12日
摘要: package 抽象内的运用;abstract class animal{ String name; String color; public animal(String name,String color) { this.name=name; this.color=color; } public 阅读全文
posted @ 2019-05-12 23:59 18软工五班罗小杨 阅读(191) 评论(0) 推荐(0) 编辑
  2019年5月10日
摘要: package 继承运用;class Student{ String studentclass="学生"; int id; String name; String boredTime; public Student(int id, String name, String boredTime) { t 阅读全文
posted @ 2019-05-10 01:14 18软工五班罗小杨 阅读(99) 评论(0) 推荐(0) 编辑
  2019年5月8日
摘要: class Circle{ double r; double pi=3.14; public Circle(double r) { this.r = r; } public void Getarea() { System.out.println("狗蛋同学算出来的圆的面积为:"+r*r*pi); } 阅读全文
posted @ 2019-05-08 23:49 18软工五班罗小杨 阅读(147) 评论(0) 推荐(0) 编辑
  2019年5月6日
摘要: package 时间表;import java.util.Date; public class Eval { public static void main(String[]args) { Date date = new Date(); String year = String.format("%t 阅读全文
posted @ 2019-05-06 23:55 18软工五班罗小杨 阅读(157) 评论(0) 推荐(0) 编辑
  2019年5月5日
摘要: package 四则运算;class Calculator{ private int num1; private int num2; private char option ; public void initCalculator(int num1,int num2,char o) { this.n 阅读全文
posted @ 2019-05-05 23:44 18软工五班罗小杨 阅读(107) 评论(0) 推荐(0) 编辑
  2019年4月29日
摘要: class Student { private int id; public String name; public String sex; private int score; public void setId(int id) { this.id = id; } public int getId 阅读全文
posted @ 2019-04-29 23:25 18软工五班罗小杨 阅读(133) 评论(1) 推荐(0) 编辑