Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 8 of 8

Thread: How to learn OOP

  1. #1
    Junior Member
    Join Date
    Aug 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default How to learn OOP

    Hi, I've left this a bit late really bit I go back to uni in 2 weeks. I got through the first year without really understanding OOP and just avoided the questions. I'm sure I will be stuck next year so I really need to study hard before I get back or I'll end up failing. I used the book Java Software Solutions but no idea really how to write my own classes.

    I would greatly appreciate any help, links and tips as I'm struggling with the book I have.

    Thank you, Alex


  2. #2
    Super Moderator Sean4u's Avatar
    Join Date
    Jul 2011
    Location
    Tavistock, UK
    Posts
    637
    Thanks
    5
    Thanked 103 Times in 93 Posts

    Default Re: How to learn OOP

    Have you worked through the Java official Java tutorials, Alex?
    Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language)
    Lesson 8: Object-Oriented Programming
    If your course is going to be using Java a lot, then it would be well worth developing a taste for the way Sun wrote the manuals. The presentation is a bit beardy, but no other source comes close to describing Java as it really is.

    Make sure you don't skim the tutorials - don't move on from one code example to the next until you've compiled it and run it to see what it does. If you see a code fragment that's obviously not a full Java class, create a new Java source file and insert the code into it, add just enough code to get it to compile and just enough code to print out the values of any variables so you can see what the fragment does. If it doesn't do what you expect, post your small, working Java program here and ask.

  3. #3
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to learn OOP

    I definitely recommend you carefully read through the tutorials Sean4u posted, and when you have specific questions, ask them here. Try writing an SSCCE that demonstrates what you're talking about when you do have a question, as that makes it much easier to help you.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    Junior Member
    Join Date
    Aug 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: How to learn OOP

    Thank you for your replies, I have started to go through the links and will give it another go. I'll keep you updated.

  5. #5
    Junior Member
    Join Date
    Nov 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to learn OOP

    I think you can learn it from online sites, w3shcool is one of the best online learning website. It has great stuff of programming language, you can also try some books like, Elements of Reusable Object Oriented Software. This book is an excellent reference but not easy read. But you should try out or atleast start from somewhere.

  6. #6
    Think of me.... Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Pakistan
    Posts
    1,136
    My Mood
    Grumpy
    Thanks
    20
    Thanked 82 Times in 78 Posts
    Blog Entries
    1

    Default Re: How to learn OOP

    Quote Originally Posted by celonmarlow View Post
    I think you can learn it from online sites, w3shcool is one of the best online learning website. It has great stuff of programming language, you can also try some books like, Elements of Reusable Object Oriented Software. This book is an excellent reference but not easy read. But you should try out or atleast start from somewhere.
    Since when W3Schools started OOP tutorials?

  7. The Following User Says Thank You to Mr.777 For This Useful Post:

    inthu (December 8th, 2011)

  8. #7
    Junior Member
    Join Date
    Aug 2011
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: How to learn OOP

    Plus this thread was written a few months ago. The OP (me) has already found the solution

  9. #8
    Junior Member
    Join Date
    Dec 2011
    Posts
    3
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Default Re: How to learn OOP

    Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language)
    http://www.ppig.org/papers/16th-kaasboll.pdf
    you can use this link to lean oop

Similar Threads

  1. Do I HAVE to learn Generics?
    By hexwind in forum Collections and Generics
    Replies: 3
    Last Post: August 14th, 2011, 11:16 AM
  2. [SOLVED] Trying to learn and I'm stuck
    By knightknight in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 1st, 2011, 04:17 PM
  3. New to this..so lost trying to learn...
    By ryan1234 in forum Object Oriented Programming
    Replies: 5
    Last Post: September 21st, 2010, 05:35 PM
  4. How long did it take you to learn?
    By JavaLearner in forum The Cafe
    Replies: 5
    Last Post: March 24th, 2010, 04:42 PM
  5. here to learn and grow
    By cejay in forum Member Introductions
    Replies: 2
    Last Post: March 1st, 2010, 03:04 AM