图描述了图形接口(Graphics)、线段(Segment)、矩形(Rectangle)、点(Point)和三维点(Point3D)之间的关系 下面哪份代码(Java)最接近对Segment的描述?
A.
public class Segment implements Graphics { privatc void Draw(); public Point ptStart ; public Point ptEnd ; }
B.
public class Segment extends Graphics { public void Draw(); private Point ptStart ; private Point ptEnd ; }
C.
public class Segment implements Graphics { private Point ptStart ; private Point ptEnd ; public void Draw(); }
D.
public class segment implements graphics { public void Draw(); private Point ptStart ; private Point ptEnd ; }