面向对象编程 [英] Object Orientated Programming

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

问题描述

如何在Delphi而非Java中的足球应用程序上使用面向对象的编程?

解决方案

OOP不是您将要使用的东西.而是需要您所使用的编程语言支持的编程范例.据我所知,Delphi是Pascal的面向对象派生类,所以是的,您可能已经在使用该范例进行编程了.

在这里,您可以找到有关OOP的更多详细信息:
http://en.wikipedia.org/wiki/面向对象的程序 [ http://en.wikipedia.org/wiki/Anders_Hejlsberg [ ^ ].

另请参见: http://en.wikipedia.org/wiki/Delphi_%28Computer_Language%29 [ ^ ].

因此,您可以使用Delphi拥有最先进的OOP环境之一.但是,出于所有实际目的,我宁愿推荐.NET和C#.

-SA


使用它的方式与在delphi中而不是Java中的任何应用程序中使用的方式相同.


How do I use Object Orientated Programming on a soccer application in delphi not java?

解决方案

OOP is not an thing that you will use. Instead is an programming paradigm which needs to be supported by the programming language you are using. As far as I know Delphi is an object-oriented derivatives of Pascal, so yes you are probably already programming by this paradigm.

Here you can find some more details about the OOP:
http://en.wikipedia.org/wiki/Object-oriented_programming[^]

Once you cleared the concepts, please ask a concrete question.

Cheers!


Delphi is a derivative of Object Pascal, a derivative of Borland Turbo Pascal, also very much object-oriented. As to Delphi, this is one of the most advanced object-oriented languages and libraries, some features are more advanced than that of .NET (and some are less).

Finally, Delphi is the most direct predecessor of both C# and .NET. All of the above was created by the same chief architect — Anders Hejlsberg, see http://en.wikipedia.org/wiki/Anders_Hejlsberg[^].

See also: http://en.wikipedia.org/wiki/Delphi_%28Computer_Language%29[^].

So, you can have one of the most advanced OOP environments with Delphi. However, for all practical purposes I would rather recommend .NET and C#.

—SA


Use it the same way you''d use it for any application in delphi and not java.


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

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