摘要:
1接口是java和C#使用的一种基本数据类型6.1 接口1接口声明接口使用关键字interface来进行声明eg:interface 接口的名字2接口体接口体中包含常量的声明和抽象方法两部分(没有变量)注意一定的要求:接口体中只有抽象方法,而且是public 接口体中常量一定是public,而且是s... 阅读全文
摘要:
import java.util.*;abstract class Geometry{ public abstract double getArea(); } class Pillar{ Geometry bottom; double height; Pillar(Geometry bottom ,... 阅读全文