文件名称:hellooooo
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3kb
- 下载次数:
- 0次
- 提 供 者:
- 刘**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
利用多态性编程,创建一个square类,实现求三角形、正方形和圆形面积。方法
//抽象出一个共享的类,定义一个函数求面积的公共界面。再重新定义各面积的求面积
//函数,在主类中创建不同类的对象,并求不同形状的面积 -use polymorphism programming, the creation of a square type, seeking to achieve triangle, square and circular area. Methods// abstract of a shared type, function for a definition of area public interfaces. Re-definition of the area for the area// function, in the main category to create different types of objects, and different shapes for the area
//抽象出一个共享的类,定义一个函数求面积的公共界面。再重新定义各面积的求面积
//函数,在主类中创建不同类的对象,并求不同形状的面积 -use polymorphism programming, the creation of a square type, seeking to achieve triangle, square and circular area. Methods// abstract of a shared type, function for a definition of area public interfaces. Re-definition of the area for the area// function, in the main category to create different types of objects, and different shapes for the area
(系统自动生成,下载前可以参看下载内容)
下载文件列表
第二题作业
..........\HelloWorld.class
..........\HelloWorld.java
..........\seck
..........\....\cat.class
..........\....\cat.java
..........\....\dog.class
..........\....\dog.java
..........\....\duck.class
..........\....\duck.java
..........\HelloWorld.class
..........\HelloWorld.java
..........\seck
..........\....\cat.class
..........\....\cat.java
..........\....\dog.class
..........\....\dog.java
..........\....\duck.class
..........\....\duck.java