What is ADT? (Abstract Data Type)

前端 未结 18 1153
借酒劲吻你
借酒劲吻你 2020-12-12 13:04

I am currently studying about Abstract Data Types (ADT\'s) but I don\'t get the concept at all. Can someone please explain to me what this actually is? Also what is collecti

18条回答
  •  孤街浪徒
    2020-12-12 13:41

    ADT is a set of objects and operations, no where in an ADT’s definitions is there any mention of how the set of operations is implemented. Programmers who use collections only need to know how to instantiate and access data in some pre-determined manner, without concerns for the details of the collections implementations. In other words, from a user’s perspective, a collection is an abstraction, and for this reason, in computer science, some collections are referred to as abstract data types (ADTs). The user is only concern with learning its interface, or the set of operations its performs...more

提交回复
热议问题