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 5 of 5

Thread: Classes/Object Beginner Help

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    22
    My Mood
    Happy
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Classes/Object Beginner Help

    Hi, i'm just starting to learn to to make classes that work together and how to make objects in Java. I've read many articles and in a book on how to make and use these things but they all aren't very friendly to beginners. Can anyone supply me with a quick lesson and examples on how to use classes and objects that's easy to understand (Your own lesson/code examples/or internet links would all work). Thanks!


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Classes/Object Beginner Help

    The best way to learn it is to use it. It's good that you're making classes that work together. Can you post that code and ask questions about what you don't understand or would like to understand better?

  3. #3
    Junior Member
    Join Date
    Jan 2014
    Location
    Saint-Petersburg, Russia
    Posts
    8
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Default Re: Classes/Object Beginner Help

    I agree with GregBrannon. If you read articles w/o practice, it's not the right way. As first step, create a simple Java program with several classes, object instances according to your feel how it should be designed. It doesn't matter if you make some OOP mistakes. Then read the books about them and correct your code. It's the only way to retain knowledge. (I tried to read books beforehand also, but it doesn't work)

  4. #4
    Junior Member
    Join Date
    Sep 2013
    Posts
    11
    My Mood
    Bored
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: Classes/Object Beginner Help

    Hi TripleChickenJumpman,

    You can follow this tutorial and learn how to create objects, classes and constructors here - Chapter 9: Create your own objects hope it will be useful .

  5. The Following User Says Thank You to albsmith For This Useful Post:

    ATB (March 8th, 2014)

  6. #5
    Junior Member
    Join Date
    Feb 2014
    Location
    Finland
    Posts
    25
    My Mood
    Bored
    Thanks
    3
    Thanked 5 Times in 5 Posts

    Default Re: Classes/Object Beginner Help

    I agree totally with the hands-on approach with learning new stuff.

    However, here are some links that might come in handy when trying to figure out the terminology and concepts behind OOP.

    Oracle's own easy to grasp explanations and examples:
    Lesson: Object-Oriented Programming Concepts (The Java™ Tutorials > Learning the Java Language)

    I have also personally loved the Berkley univ's old (still perfectrly valid tho!) lectures, here is the start of one of their OOP lecture series:
    CS 61A Lecture 17: Object-Oriented Programming I - YouTube

    For a book, i'd go for the "Head first" series, but that's again just my preference. But as said, try to fiddle as much as possible with your own code and not just rely on passive learning. Don't be afraid of hard concepts and failing either. Just come and ask for a direction if needed.

    Best of luck with the learning!

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

    ATB (March 8th, 2014)

Similar Threads

  1. Classes of classes? [Very beginner asking a question] [w/ Codes]
    By UhKindaAwkward in forum Object Oriented Programming
    Replies: 6
    Last Post: December 24th, 2013, 03:05 AM
  2. Replies: 2
    Last Post: September 26th, 2013, 04:13 PM
  3. question about Anonymous object and Wrapper classes?
    By sciences in forum Object Oriented Programming
    Replies: 1
    Last Post: May 6th, 2013, 09:00 AM
  4. Beginner : Using a loop to print object array
    By trancecommunity in forum What's Wrong With My Code?
    Replies: 6
    Last Post: February 5th, 2013, 06:31 PM
  5. Replies: 6
    Last Post: October 31st, 2012, 06:16 AM

Tags for this Thread