基于对象和面向对象之间有什么区别? [英] what is the difference between object based and object oriented?

查看:91
本文介绍了基于对象和面向对象之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你将简要解释一下?????

解决方案

NagaNimesh写道:

我搜索得出结论但有疑问

t =什么是抽象数据类型?????????你会告诉我??????

摘要不只是数据类型; abstract是一些类型,不是用于实例化的类型。在某些语言中,它在语法上表示并推断派生类型,因此可以防止意外创建类型的实例。目的是仅将它们用作其他类型的基本类型。



此外,将它们用作表示元素的编译时类型一组对象用于多态。在这种情况下,抽象基类的成员(严格来说,它根本不必是抽象的,它可以是伪抽象的,也就是说,有时为某些目的而实例化;它的重要性在于它是所有运行时类型集合)用作集合中所有对象的公共接口。因此,所有具有这些对象的操作都应该仅通过这些公共成员执行(转换为更多派生类型被视为OOP违规;可以使用它但最好避免使用;应该使用更好的代码设计)。另一种机制后期绑定用于连接特定于所有运行时类型的更专业的方法和属性,这些特定方法或属性应始终为虚拟;后期绑定实际上是听说过的OOP。



另一种代表多态集的另类编译时类型是接口类型。



从上面的内容中,你应该能够看到像你一样提出单独的问题并不是很有用。一方面与另一方面挂钩,就是这样,直到你覆盖所有OOP。 OOP不能作为主题列表学习,只能使用整体方法。很多时候,传统的OOP教学会产生错误的印象,即OOP范式中存在不同的支柱,但实际情况并非如此。所有概念都是相互依存的,需要一起学习。我建议从开头到最后阅读一本书开始。



-SA


尝试

面向对象语言和基于对象的语言之间的区别 [ ^ ]

基于对象和面向对象 [ ^ ]


这应该足够gr了想法: http://en.wikipedia.org/wiki/Object-based_language [ ^ ]。



要真正理解它,你需要非常清楚OOP是如何工作的。尽管这种范式非常受欢迎,但我坚信,不了解它的软件专业人员的数量远远大于那些人的数量。但请参阅我对此问题的评论。理解它比从差异中产生的反效果更重要。



-SA


will u anayone explain briefly?????

解决方案

NagaNimesh wrote:

i searched got a conclusion but have a doubt
t=what is abstract data types????????? will u tell me??????

Abstract are not just data types; abstract are some types, those which are not intended for instantiation. In some languages, it is syntactically indicated and inferred for derived types, so accidental creation of the type's instance is prevented. The purpose is to use them only as the base types for other types.

Besides, using them as compile-time types representing elements of some set of objects is used for polymorphism. In this case, the members of the abstract base class (strictly speaking, it does not have to be abstract at all, it could be pseudo-abstract, that is, sometime instantiated for some purposes; it's only important that it is a base of all the runtime types of the set) are used as a common interface for all objects of the set. All operations with these objects are therefore should be performed only through these common members (casting to more derived type is considered as OOP violation; it could be used but is the best avoided; better code design should be used instead). Another mechanism, late binding, is used to hook up the more specialized methods and properties specific to all the runtime types, these specific methods or properties should always be virtual; late binding is actually the heard of OOP.

Another, alternative kind of compile-time type representing polymorphic set is the interface type.

From the above, you should be able to see that asking separate questions like yours are not very useful. One aspect hooks up another one, at it goes this way until you cover all OOP. OOP cannot be learned as list of topics, only holistic approach can be used. Very often, traditional OOP teaching creates false impression that there are difference pillars in OOP paradigm, but in reality this is not so. All concepts are interdependent and need to be learned together. I would advise to start it with reading one single book, from the beginning to the very end.

—SA


Try
Difference between object oriented and object based language[^]
Object Based vs. Object Oriented[^]


This should be enough to grasp the idea: http://en.wikipedia.org/wiki/Object-based_language[^].

To really understand it, you would need to know very well how OOP works. Despite of the extreme popularity of this paradigm, I strongly believe that the number of the "software professional" who don't understand it is considerably greater than the number of those who do. But see also my comment to this question. Understanding it is much more important than the pretty counter-productive figuring out of "differences".

—SA


这篇关于基于对象和面向对象之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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