Introduction to OOP

What's the best language to learn with?

Page 1 of 1

11 Replies - 2279 Views - Last Post: 27 March 2008 - 09:48 AM

#1 Cyborg Ninja   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 29-January 08

Introduction to OOP

Posted 30 January 2008 - 02:39 PM

I had difficulty in the past grasping the concept of object oriented programming. I was using C++ and Java, and I struggled because of my lack of understanding the basics. I now have a broader background in programming and so I can pick up other languages pretty easily, but I'd like to find a language that will help me best understand OOP. What language do you think that would be?
Is This A Good Question/Topic? 0
  • +

Replies To: Introduction to OOP

#2 Martyr2   User is offline

  • Programming Theoretician
  • member icon

Reputation: 5612
  • View blog
  • Posts: 14,686
  • Joined: 18-April 07

Re: Introduction to OOP

Posted 30 January 2008 - 02:48 PM

well, to tell you the truth C++ and Java are the two that would show you what you need to know. You could pick up a .NET language and learn OOP, but if you really want to fully understand you want to look at C++ and or Java. C++ is where OOP began for the most part.

You said you had trouble with C++ and Java in the past. When you start having those troubles, that is when you need to start reading tutorials here on DIC and asking questions. I am sure the members here can clarify what is the problem with examples and helping you fix code you have written.

It just takes practice. :)
Was This Post Helpful? 0
  • +
  • -

#3 nirvanarupali   User is offline

  • D.I.C Stomach
  • member icon

Reputation: 14
  • View blog
  • Posts: 1,120
  • Joined: 01-August 07

Re: Introduction to OOP

Posted 31 January 2008 - 03:27 AM

As far as OOP is concern, I pick C++. I am not learning yet in Java which also good for OOP but as they say, it is a descendant of C++. So choose both.
Was This Post Helpful? 0
  • +
  • -

#4 1lacca   User is offline

  • code.rascal
  • member icon

Reputation: 44
  • View blog
  • Posts: 3,822
  • Joined: 11-August 05

Re: Introduction to OOP

Posted 31 January 2008 - 03:32 AM

I was told a while back, that if you REALLY want to understand OOP then learn Smalltalk. I did, but didn't find this claim justified.
Was This Post Helpful? 0
  • +
  • -

#5 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7507
  • View blog
  • Posts: 15,558
  • Joined: 16-October 07

Re: Introduction to OOP

Posted 31 January 2008 - 05:08 AM

Java is probably the best for learning Object Oriented design. C++ allows you to ignore OO practices, if you like. Smalltalk ( will not mock the Apple ) is dynamically typed, which I believe is a show stopper, no matter how much other good OO stuff you have going on. A number of other OO styled languages are also loosely typed in one way or another. Or, worse, have weird C++ legacy cruft.

Java is interestingly purist in their OO goals. A number of elements that could have been adopted, particular C#'s delegate model, are pointedly ignored because they're not OO enough. If you're strickly looking for OOP, I believe Java will force you into the right habits. Just avoid static, other than main, and you'll be fine.
Was This Post Helpful? 0
  • +
  • -

#6 Cyborg Ninja   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 56
  • Joined: 29-January 08

Re: Introduction to OOP

Posted 31 January 2008 - 03:28 PM

Thanks for the replies. I think I'll try with Java. To be honest, I haven't used Java since 1.3!
Was This Post Helpful? 0
  • +
  • -

#7 Amadeus   User is offline

  • g+ + -o drink whiskey.cpp
  • member icon

Reputation: 253
  • View blog
  • Posts: 13,507
  • Joined: 12-July 02

Re: Introduction to OOP

Posted 01 February 2008 - 03:10 PM

If you really want to grasp the concepts of OO using Java, I'd suggest you check out an IDE named BlueJ. It really reinforces the concept.
Was This Post Helpful? 0
  • +
  • -

#8 Steven Smith   User is offline

  • New D.I.C Head

Reputation: 6
  • View blog
  • Posts: 45
  • Joined: 17-March 08

Re: Introduction to OOP

Posted 18 March 2008 - 08:17 AM

I'm a bit biased as well toward Java... not because I think its the best language out there for all purposes, but I am used to it.

Whatever language you decide to pick up, try to fight through some more official tutorials. You may skip all syntax related stuff in the official tutorials if you prefer to pick that up bit by bit, but find as many good descriptions of classes and objects as possible. Additionally, perform extra work identifying classes/object pairs in real life and writing code to describe how they interact.

The biggest leap for me in the OOP languages was learning to correctly identify where to break classes and what methods make sense to delegate to each class. Once you crest this learning curve, its mostly syntax.
Was This Post Helpful? 0
  • +
  • -

#9 capty99   User is offline

  • i am colt mccoy
  • member icon

Reputation: 100
  • View blog
  • Posts: 10,081
  • Joined: 26-April 01

Re: Introduction to OOP

Posted 18 March 2008 - 09:13 AM

i learned java using blue j.
knowing just the basics of it has made everything so much easier.
Was This Post Helpful? 0
  • +
  • -

#10 red_4900   User is offline

  • Code T(h)inkers
  • member icon

Reputation: 21
  • View blog
  • Posts: 1,120
  • Joined: 22-February 08

Re: Introduction to OOP

Posted 26 March 2008 - 12:23 PM

just a quick question. what is OOP anyway?

Quote

from wiki : Object-oriented programming (OOP) is a programming paradigm that uses "objects" and their interactions to design applications and computer programs. It is based on several techniques, including encapsulation, modularity, polymorphism, and inheritance. It was not commonly used in mainstream software application development until the early 1990s. Many modern programming languages now support OOP.


is it just another way of using programming language? a bit unclear.

and in what field is it important? or it's important in all field?

sorry for the noob question =.="
Was This Post Helpful? 0
  • +
  • -

#11 Tom9729   User is offline

  • Segmentation fault
  • member icon

Reputation: 181
  • View blog
  • Posts: 2,642
  • Joined: 30-December 07

Re: Introduction to OOP

Posted 26 March 2008 - 05:28 PM

It's just another way of doing things.

I'm surprised nobody linked to wikipedia.

This post has been edited by Tom9729: 26 March 2008 - 05:28 PM

Was This Post Helpful? 0
  • +
  • -

#12 MitkOK   User is offline

  • D.I.C Regular
  • member icon

Reputation: 33
  • View blog
  • Posts: 403
  • Joined: 09-August 07

Re: Introduction to OOP

Posted 27 March 2008 - 09:48 AM

I recommmend Python or Ruby( pure object-oriented ) where OOP coding is absolutely fun ;)

This post has been edited by MitkOK: 27 March 2008 - 09:50 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1