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.
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.
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 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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With