代码搜索:rectangle
找到约 10,000 项符合「rectangle」的源代码
代码结果 10,000
www.eeworm.com/read/254578/12129283
java example41.java
public class Rectangle {
public int width = 0;
public int height = 0;
public Point origin;
// four constructors
public Rectangle() {
origin = new Point(0, 0);
}
www.eeworm.com/read/253142/12242665
htm zinheritexample1.htm
Example
function Polygon(iSides) {
this.s
www.eeworm.com/read/253142/12242676
htm polygonexample.htm
Example
function Polygon(iSides) {
this.sides = iSides;
}
Polygon.prototype.getArea = function () {
r
www.eeworm.com/read/253142/12242687
htm dynamicprototypepolygonexample.htm
Example
function Polygon(iSides) {
this.sides = iSides;
if (typeof Polygon._initialized == "undefin
www.eeworm.com/read/253142/12242694
htm zinheritexample2.htm
Example
function Polygon(iSides) {
this.sides
www.eeworm.com/read/337263/12380335
htm zinheritexample1.htm
Example
function Polygon(iSides) {
this.s
www.eeworm.com/read/337263/12380343
htm polygonexample.htm
Example
function Polygon(iSides) {
this.sides = iSides;
}
Polygon.prototype.getArea = function () {
r
www.eeworm.com/read/337263/12380352
htm dynamicprototypepolygonexample.htm
Example
function Polygon(iSides) {
this.sides = iSides;
if (typeof Polygon._initialized == "undefin
www.eeworm.com/read/337263/12380358
htm zinheritexample2.htm
Example
function Polygon(iSides) {
this.sides
www.eeworm.com/read/130612/14181174
java testrectangle.java
//CHAPTER 5, SOLUTION 1
// This tests the Rectangle class that appears in the same directory as this.
public class TestRectangle {
public static void main(String args[]) {
Rectangle[] re