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

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

问题描述

什么是面向对象编程中的抽象数据类型?我已经浏览了这个主题的维基,但我仍然不清楚.有人能澄清一下吗?

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)不一定是OOP概念.根据功能描述堆栈和队列等概念是一个较旧的术语,但不描述实现.

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天全站免登陆