Welcome to Dream.In.Code
Getting Help is Easy!

Join 86,399 Programmers. There are 1,475 online right now! Ask your question and get quick answers from Dream.In.Code experts. Join the #1 programming help community on the internet! Registration is fast and FREE... Join Now!

Chat LIVE With a Expert
Powered by LivePerson.com

Register to Make This Box Go Away!

Introduction to OOP

 
Reply to this topicStart new topic

Introduction to OOP, What's the best language to learn with?

Cyborg Ninja
post 30 Jan, 2008 - 02:39 PM
Post #1


D.I.C Head

**
Joined: 29 Jan, 2008
Posts: 56



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?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Martyr2
post 30 Jan, 2008 - 02:48 PM
Post #2


Programming Theoretician

Group Icon
Joined: 18 Apr, 2007
Posts: 3,561

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. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

nirvanarupali
post 31 Jan, 2008 - 03:27 AM
Post #3


"To think is to create"

Group Icon
Joined: 1 Aug, 2007
Posts: 761

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

1lacca
post 31 Jan, 2008 - 03:32 AM
Post #4


code.rascal

Group Icon
Joined: 11 Aug, 2005
Posts: 3,192

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

baavgai
post 31 Jan, 2008 - 05:08 AM
Post #5


Dreaming Coder

Group Icon
Joined: 16 Oct, 2007
Posts: 1,078

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Cyborg Ninja
post 31 Jan, 2008 - 03:28 PM
Post #6


D.I.C Head

**
Joined: 29 Jan, 2008
Posts: 56

Thanks for the replies. I think I'll try with Java. To be honest, I haven't used Java since 1.3!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Amadeus
post 1 Feb, 2008 - 03:10 PM
Post #7


g++ -o drink whiskey.cpp

Group Icon
Joined: 12 Jul, 2002
Posts: 11,385

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Steven Smith
post 18 Mar, 2008 - 08:17 AM
Post #8


New D.I.C Head

*
Joined: 17 Mar, 2008
Posts: 24

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

capty99
post 18 Mar, 2008 - 09:13 AM
Post #9


the real kya

Group Icon
Joined: 26 Apr, 2001
Posts: 8,386

i learned java using blue j.
knowing just the basics of it has made everything so much easier.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

red_4900
post 26 Mar, 2008 - 12:23 PM
Post #10


D.I.C Regular

***
Joined: 22 Feb, 2008
Posts: 277

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 =.="
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Tom9729
post 26 Mar, 2008 - 05:28 PM
Post #11


D.I.C Addict

Group Icon
Joined: 30 Dec, 2007
Posts: 575

It's just another way of doing things.

I'm surprised nobody linked to wikipedia.

This post has been edited by Tom9729: 26 Mar, 2008 - 05:28 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

MitkOK
post 27 Mar, 2008 - 09:48 AM
Post #12


D.I.C Head

Group Icon
Joined: 9 Aug, 2007
Posts: 102

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

This post has been edited by MitkOK: 27 Mar, 2008 - 09:50 AM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 5/17/08 06:22AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month