-
Mypicture
定义4个类,MyShape、MyLine、MyRectangle和MyOval,其中MyShape是其他三个类的父类。MyShape为抽象类,包括图形位置的四个坐标;一个无参的构造方法,将所有的坐标设置为0;一个带参的构造函数,将所有的坐标设置为相应值;每个坐标的设置和读取方法;abstract void draw(Graphics g)方法。MyLine类负责画直线,实现父类的draw方法;MyRectangle负责画矩形,实现父类的draw方法;MyOval负责画椭圆,实现父类的draw方法。编写一个应用程序,使用上面定义的类,随机选取位置和形状,绘制20个图形。(Defines four classes, MyShape, MyLine, MyRectangle and MyOval, which MyShape the other three parent class. MyShape is an abstract class, including graphics position four coordinates a no-argument constructor, all the coordinates are set to 0 a parameterized constructor, all the coordinates is set to the corresponding values each coordinate set and reading method abstract void draw (Graphics g) method. MyLine class is responsible for drawing straight lines, to achieve the draw method of the parent class MyRectangle responsible for drawing rectangles, to achieve the parent class draw method MyOval responsible painted oval, draw method to achieve the parent class. Write an application that uses the class defined above, randomly selected location and shape, draw 20 graphics.)
- 2021-04-14 09:08:55下载
- 积分:1
-
NameAndTypeUsageMarker
This ClassVisitor marks all NameAndType constant pool entries that are being used in the program classes it visits.
- 2013-12-06 12:07:57下载
- 积分:1
-
ex4
ssd3 Exercise 4.Sales.java
- 2009-11-06 19:26:47下载
- 积分:1
-
Java-primer
This present a primer for people who are unfamiliar with the Java language. This introduction is intended to allow you to develop the Java skills necessary to understand basic programs.
- 2009-04-23 07:47:15下载
- 积分:1
-
imzdx-jfinal-layui-demo-master
说明: 利用jfinal+layui实现后台管理系统,页面清晰美观,非常好用(Using jfinal + layui to realize the background management system, the page is clear and beautiful, very easy to use)
- 2019-11-14 11:14:39下载
- 积分:1
-
New-folder
code for calculator. it uses java to design gui of calculator. its only a basic calculator
- 2016-05-10 14:14:22下载
- 积分:1
-
JAVA
使用java语言通过反射创新类的新对象,实现功能(Using java language class through reflection innovative new objects, to achieve functional)
- 2013-06-09 10:30:56下载
- 积分:1
-
multiThread_Runnable
一个非常简单的多线程程序:三个线程随机产生26个英文字母,可以随时暂停线程并继续。用Java的implements Runnable()实现的多线程,当然您也可以用extends Thread class去实现多线程!代码的每一步都有详细的注释便于大家进一步了解多线程功能!(A simple multiple Thread program which based on implementing Runnable interface, you can use extends Thread class as well.)
- 2012-11-13 12:08:30下载
- 积分:1
-
Hibernate-code
深入浅出Hibernate源码,学习hibernate的好资料(Hibernate code)
- 2014-02-20 15:22:41下载
- 积分:1
-
PrimeFaces Cookbook
Java cookbook for primefaces developers
- 2019-07-09 14:42:49下载
- 积分:1