代码搜索:rectangle
找到约 10,000 项符合「rectangle」的源代码
代码结果 10,000
www.eeworm.com/read/123850/14609451
txt 提高java代码可重用性的三个措施(2).txt
作者:五一
日期:2001-6-7 16:39:30
提高Java代码可重用性的三个措施(2)
松下客 2001-05-29 09:35:18
static public boolean
containsPoint(Polygon polygon, Point p) {...}
}
从类的名字pPolygon可以看出,该类所封装的过程主要与Po
www.eeworm.com/read/123850/14609489
txt 提高java代码可重用性的三个措施.txt
作者:Eazily
email: Eazily@yeah.net
日期:2001-7-14 21:37:38
提高Java代码可重用性的三个措施
本文介绍了三种修改现有代码提高其可重用性的方法,它们分别是:改写类的实例方法,把参数类型改成接口,选择最简单的参数接口类型。
措施一:改写类的实例方法
通过类继承实现代码重用不是精确的代码重用技术,因此它并不是最理想的代码重 ...
www.eeworm.com/read/123850/14609681
txt 转-类的深入研究.txt
作者:lovefan
email: lovefan@cmmail.com
日期:8/8/2001 2:26:55 PM
类的深入研究
(印佛西地 2001年08月07日 10:29)
1:在Java中使用继承
面向对象的程序设计中最为强大的功能是类的继承,类的继承允许你在一个已经存在的类之上编写新的程序,例如,你想建立一个可在屏幕上显示并能填充它的矩形类,你可以从头开始或者利用 ...
www.eeworm.com/read/223765/14618203
cpp graphicsalgorithmview.cpp
// GraphicsAlgorithmView.cpp : implementation of the CGraphicsAlgorithmView class
//
#include "stdafx.h"
#include "GraphicsAlgorithm.h"
#include "GraphicsAlgorithmDoc.h"
#include "GraphicsAlg
www.eeworm.com/read/123440/14633056
h xrect.h
/*-----------------------------------------------------------------------
;
; XRECT - header file
;
;
;
; ****** XLIB - Mode X graphics library ****************
; ******
www.eeworm.com/read/123159/14644749
java wall.java
import java.awt.*;
public class wall{
private int xPos;
private int yPos;
private int IndexOfImage;
private Rectangle Wall;
public wall(int a, int b, int c){
xPos = a;
yPos = b;
www.eeworm.com/read/123159/14644788
java gold.java
import java.awt.*;
public class gold{
private int xPos, yPos;
private Rectangle Gold;
private int goldSpecies;
public gold(int a, int b, int c){
xPos = a;
yPos = b;
goldSpecie
www.eeworm.com/read/123156/14644968
java powerup.java
import java.awt.*;
public class powerup{
private int xPos;
private int yPos;
private int function;
private Rectangle Powerup;
private int display = 0;
private int displaytime;
publi
www.eeworm.com/read/123156/14644969
java steelwall.java
import java.awt.*;
public class Steelwall{
private int xPos;
private int yPos;
private Rectangle[] border = new Rectangle[4];
private boolean[] shape = new boolean[4];
private boolean wal
www.eeworm.com/read/123156/14644973
java bullet.java
import java.awt.*;
public class bullet{
private int xPos;
private int yPos;
private Rectangle bullet;
private int direction;
private int Speed;
private int bulletpower;
public bulle