Object Oriented Programming

How did you learn it?

Page 1 of 1

11 Replies - 1875 Views - Last Post: 01 January 2010 - 08:07 PM Rate Topic: -----

#1 Cbeppe  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 31
  • View blog
  • Posts: 216
  • Joined: 16-September 09

Object Oriented Programming

Posted 31 December 2009 - 05:34 PM

Hello,

For some time now, I have been trying to look into Object Oriented Programming because I have heard so many great things about it and I feel it would be the most logical next step in my leaning. However, after reading through, and trying to comprehend several guides, I just don't seem to grasp it. It all seems very confusing, and illogical to me. Is it really such a big step, or am I just plain stupid :P

My next question is then: How did you guys learn it? I realize many of you have had teachers and classes, but I'm looking for an online tutorial. So far, I have been working with the ones from http://cplusplus.com and http://gillius.org , but I'm having a hard time. Would you recommend any other ones?

Thanks for taking the time.

This post has been edited by Cbeppe: 31 December 2009 - 05:35 PM


Is This A Good Question/Topic? 0
  • +

Replies To: Object Oriented Programming

#2 Delta_Echo  Icon User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Re: Object Oriented Programming

Posted 31 December 2009 - 05:48 PM

http://www.cprogramm...m/tutorial.html

DIC also has a tutorial section, look at the top of this web page for "Tutorials".
(Skyhawk would shoot me if i forgot to mention that. lol)
keep in mind that other languages use OOP aswell. Like Java.
Goodluck :)

This post has been edited by Delta_Echo: 31 December 2009 - 05:50 PM

Was This Post Helpful? 0
  • +
  • -

#3 Cbeppe  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 31
  • View blog
  • Posts: 216
  • Joined: 16-September 09

Re: Object Oriented Programming

Posted 31 December 2009 - 06:08 PM

Thanks for the link. I also started reading the C++ OOP tutorial here, and it seems really good. I think I will start out from there.

I know many programming languages use the OOP structure which is why I want to learn it. It also seems the way to go if I want to make more complicated programs. I pick C++ because I feel it is my strongest language.
Was This Post Helpful? 0
  • +
  • -

#4 Bench  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 944
  • View blog
  • Posts: 2,464
  • Joined: 20-August 07

Re: Object Oriented Programming

Posted 31 December 2009 - 06:08 PM

As Delta_Echo said, there are other languages to choose from, but assuming you've already decided to settle with C++, you could try Bruce Eckel's free C++ e-book Thinking in C++ 2nd ed http://mindview.net/...ingInCPP2e.html

To be honest, you probably won't find it easy if all you're doing is reading a patchwork blanket of information from various mediocre online tutorials (And with a few rare exceptions aside, you really only get what you pay for from free internet tutorials)

If you're serious about learning, buy at least one good book which will mentor you through the stages of OO design and development, and explains the principles using useful, meaningful examples. (And hopefully there'll be less chance of you falling foul of the huge amounts of duff, mis-information floating around)

Some beginner-level C++ books which are worth checking out:
- "Accelerated C++": http://accu.org/inde...e...ch&rid=1185
- "You Can Do It!": http://accu.org/inde...e...rch&rid=470
- "C++ Primer 4th Ed": http://accu.org/inde...e...rch&rid=778
- "Programming: Principles and Practice using C++": http://blog.cplusplu...d-practice.html
Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6627
  • View blog
  • Posts: 30,868
  • Joined: 10-May 07

Re: Object Oriented Programming

Posted 31 December 2009 - 08:35 PM

I've avoided OOP rather successfully :)
Was This Post Helpful? 0
  • +
  • -

#6 Delta_Echo  Icon User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Re: Object Oriented Programming

Posted 01 January 2010 - 01:48 AM

This is a REALLY good book: C++ Without Fear.

I swear by it.
Was This Post Helpful? 0
  • +
  • -

#7 optix212  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 30
  • View blog
  • Posts: 540
  • Joined: 10-October 09

Re: Object Oriented Programming

Posted 01 January 2010 - 07:41 AM

OOP is nothing but a methodology, and it is actually quite simple.

C++ How To Program, 5th Edition is an awesome book to learn about OOP because it jumps into OOP in the 3rd chapter rather than other books.

in C programming, you learn to write programs using verbs to describe your creation to the best of your ability. But with the invention of C++, OOP was introduced, now letting you use nouns to replace the verbs, thus improving program readability, functionality.

Simply put, your life will be alot easier once you get OOP down.
Was This Post Helpful? 0
  • +
  • -

#8 Cbeppe  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 31
  • View blog
  • Posts: 216
  • Joined: 16-September 09

Re: Object Oriented Programming

Posted 01 January 2010 - 07:46 AM

Looks like I'll be going book shopping! Thanks for all the great tips.
Was This Post Helpful? 0
  • +
  • -

#9 KYA  Icon User is offline

  • Wubba lubba dub dub!
  • member icon

Reputation: 3202
  • View blog
  • Posts: 19,232
  • Joined: 14-September 07

Re: Object Oriented Programming

Posted 01 January 2010 - 08:16 AM

If you don't mind a book that isn't straight C++ related (but uses a similar pseduocode since the book focuses on OOP) Fundamentals of Object Oriented Design in UML by Meilir Page Jones is a good book.
Was This Post Helpful? 0
  • +
  • -

#10 Delta_Echo  Icon User is offline

  • D.I.C Addict

Reputation: 5
  • View blog
  • Posts: 722
  • Joined: 24-October 07

Re: Object Oriented Programming

Posted 01 January 2010 - 07:43 PM

If your going for mindset book: The Object Oriented Thought Process
They have UML examples.
Was This Post Helpful? 0
  • +
  • -

#11 Programmist  Icon User is offline

  • Refactorer in Chief
  • member icon

Reputation: 255
  • View blog
  • Posts: 1,843
  • Joined: 02-January 06

Re: Object Oriented Programming

Posted 01 January 2010 - 07:59 PM

If you want to learn OOP I'm really wondering why you're asking questions in a C++ forum. :)
Was This Post Helpful? 0
  • +
  • -

#12 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon


Reputation: 7150
  • View blog
  • Posts: 14,893
  • Joined: 16-October 07

Re: Object Oriented Programming

Posted 01 January 2010 - 08:07 PM

Cosmetically, all OOP does is allow you to more logically organize code. Extra benefits include code reuse and all kinds of syntax sugar, depending on language. Abstractly, it can be a different way of looking at a problem.

Tic Tac Toe is a good problem. Keeping track of board state is usually a pain, no matter what the language. Write a procedural version of the game that works. Then write an object oriented version. This should teach you a lot.

It's ok if OOP doesn't really seem to offer that much in the beginning. Like so many ideas in programming, it's one of those things that makes a lot more sense after you've been coding a while and fighting logical complexity.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1