寻找纯面向对象的语言 [英] Looking for a pure object oriented language

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

问题描述

我认为面向对象的编程被高估了,但是我想学习这种范例.我一直在尝试通过QT 4在PHP 5和C ++中进行此操作.不幸的是,我倾向于以结构化的方式进行编程,我不使用太多的继承,也不使用多个实例.我认为我必须学习一种纯粹的面向对象的语言,迫使我必须使用上述功能.

I think object oriented programming is overrated, however I want to learn this paradigm. I have been trying to do this in PHP 5 and C++ with QT 4. Unfortunately, I tend to program in structured way, I do not use much of inheritance nor multiple instances. I think I have to learn a pure object oriented language that force me to use above features.

我认为最好的选择可能是学习Ruby.您能确认还是说出更好的选择?

I think the best option is probably to learn Ruby. Could You confirm or name better alternative?

我主要在x86-64 Linux上工作.

I work mainly on a x86-64 Linux.

推荐答案

面向对象的编程与语法无关.这是一个编程范例.

Object-oriented programming isn't about syntax. It a programming paradigm.

一种语言可以强迫您使用对象(例如,如果 everything 是一个对象),但是使用其中一种语言并不会强迫"您学习对象-面向程序设计.

A language can force you to use objects (if everything is an object, for example) but using one of those languages isn't going to "force" you to learn object-oriented programming.

我不使用太多继承,也不使用多个实例

I do not use much of inheritance nor multiple instances

您必须了解何时以及为什么使用这些技术(数据抽象,封装,多态性和继承)来思考对象.在面向对象的编程中获得良好的参考,并使用最熟悉的任何语言(支持OOP)来应用这些技术.

You have to learn when and why you use these techniques (data abstraction, encapsulation, polymorphism, and inheritance) to think in objects. Get a good reference in object-oriented programming and use whatever language (that supports OOP) you are most comfortable with to apply those techniques.

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

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