定義 Interface

Interface

根源object class

不能定義自己的數據成員
不能定義構造或析構函數
不能聲明Static成員
不能繼承class

可以繼承一個或者多個Interface

從Interface繼承下來的class 必須實現Interface中的所有成員方法.

posted on 2005-08-18 17:17  小鸟飞飞  阅读(158)  评论(0)    收藏  举报

导航