面向对象编程中的抽象数据类型是什么? [英] What is an abstract data type in object oriented programming?

查看:153
本文介绍了面向对象编程中的抽象数据类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是面向对象编程中的抽象数据类型?我已经阅读了有关此主题的Wiki,但仍不清楚.有人可以澄清吗?

What is an abstract data type in object oriented programming? I've gone through the wiki for this topic, but I am still unclear about it. Could someone clarify?

推荐答案

抽象类是一个概括性概念.您发明了一个类,仅用作继承的基类,而不实例化对象.

An abstract class is a generalization concept. It is a class you invent to only use as a base class for inheritance but not to instantiate objects from.

抽象数据类型( ADT )不一定是面向对象的概念.用功能描述例如Stack和Queue等概念是一个较旧的术语,而没有描述其实现.

And abstract datatype (ADT) is not necessarily an OOP concept. It is an older term to describe the concepts of for example Stack and Queue in terms of their functionality, without describing the implementation.

这篇关于面向对象编程中的抽象数据类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆