1.提供count只读属性,整型。 2.提供Add方法,接受double型x,y,无返回类型。 3.提供IthPoint方法,接受整型标号i,输出第i个IPoint对象,IPoint类型。
怎么做啊?刚接触
interface IPoints { int getCount(); void Add(double x, double y); IPoint IthPoint(int i); } // 实现的代码,等你采纳了写给你