您的位置:首页 > 其它

ADT(Abstract Data Type)

2017-03-26 09:03 633 查看
  在stackoverflow上找到了答案,第二个人的回答:

Abstract Data Type(ADT) is a data type, where only behavior is defined but not implementation.

Opposite of ADT is Concrete Data Type (CDT), where it contains an implementation of ADT.

Examples:

Array, List, Map, Queue, Set, Stack, Table, Tree, and Vector are ADTs. Each of these ADTs have >many implementations i.e. CDT. Container is a high-level ADT of above all ADTs.

Real life example:

Book is Abstract (Telephone Book is an implementation)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: