代码搜索:rectangle
找到约 10,000 项符合「rectangle」的源代码
代码结果 10,000
www.eeworm.com/read/214824/15086885
cpp xt12-4.cpp
#include
using namespace std;
//定义抽象基类Shape
class Shape
{public:
virtual double area() const =0; //纯虚函数
};
//定义Circle类
class Circle:public Shape
{public:
Circle(doub
www.eeworm.com/read/213372/15136351
cpp xt12-4.cpp
#include
using namespace std;
//定义抽象基类Shape
class Shape
{public:
virtual double area() const =0; //纯虚函数
};
//定义Circle类
class Circle:public Shape
{public:
Circle(doub
www.eeworm.com/read/212745/15150497
java ainherit.java
abstract class Shape //定义抽象类 Shape
{
public abstract void draw(); //定义抽象方法
}
class Ellipse extends Shape //定义子类Ellipse
{
public void draw() //实现draw()方法
{
System.out.println
www.eeworm.com/read/212745/15150505
java inherit.java
class Shape //定义父类Shape
{
protected int lineSize; //线宽
public Shape() //构造方法1
{
lineSize = 1;
}
public Shape(int ls) //构造方法2
{
lineSize = ls;
}
public vo
www.eeworm.com/read/212745/15150510
java cinherit.java
class Shape //定义父类Shape
{
public void draw()
{
System.out.println("Draw a Shape");
}
}
class Ellipse extends Shape //定义子类Ellipse
{
public void draw() //覆盖父类的draw()方法
{
www.eeworm.com/read/205788/15306986
java packagedemo.java
//PackageDemo.java
package mypackage;
import shape.*;
public class PackageDemo{
public static void main(String []args){
rectangle rect=new rectangle(50,100,20,10);
circle cir=new circle(
www.eeworm.com/read/162614/5536496
cc natxconfigureevent.cc
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LIC
www.eeworm.com/read/162614/5536516
cc natxexposeevent.cc
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LIC
www.eeworm.com/read/162519/5546028
cc natxconfigureevent.cc
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LIC
www.eeworm.com/read/162519/5546048
cc natxexposeevent.cc
/* Copyright (C) 2000 Free Software Foundation
This file is part of libgcj.
This software is copyrighted work licensed under the terms of the
Libgcj License. Please consult the file "LIBGCJ_LIC