Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a pure object oriented language [closed]

Tags:

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.

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

I work mainly on a x86-64 Linux.

like image 408
Michas Avatar asked Jan 27 '10 16:01

Michas


People also ask

Is there any pure object-oriented language?

int, long, bool, float, char, etc as Objects: Smalltalk is a “pure” object-oriented programming language unlike Java and C++ as there is no difference between values which are objects and values which are primitive types. In Smalltalk, primitive values such as integers, booleans and characters are also objects.

What is meant by pure object-oriented language?

Pure Object Oriented Language or Complete Object Oriented Language are Fully Object Oriented Language which supports or have features which treats everything inside program as objects. It doesn't support primitive datatype(like int, char, float, bool, etc.).

Which of the following is pure object-oriented language?

Which was the first purely object oriented programming language developed? Explanation: SmallTalk was the first programming language developed which was purely object oriented. It was developed by Alan Kay.

Is Java is pure object-oriented language?

Though java follows all the four object-oriented concepts, Java has predefined primitive data types (which are not objects). You can access the members of a static class without creating an object of it.


2 Answers

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

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

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.

like image 175
Robert Cartaino Avatar answered Oct 02 '22 12:10

Robert Cartaino


If you want a pure OO language, try Smalltalk. Everything is an object in Smalltalk. This is not the case for Java, where primitive types (int, float) aren't objects by themselves.

If it need't be a 'pure' OO language, Java is a good choice because it's more mainstream.

like image 45
Alexander Gessler Avatar answered Oct 02 '22 13:10

Alexander Gessler