OOP design table chair bench
摘要:
abstract class material{ int weight;}class wood extends material{}class plastic extends material{}class metal extends material{}interface furniture { material getMaterial(); void setMaterial(material m);}class table implements furniture{ material mat; public material getMaterial(){ ... 阅读全文
posted @ 2013-08-21 07:06 brave_bo 阅读(218) 评论(0) 推荐(0)
浙公网安备 33010602011771号