Results 1 to 9 of 9
Like Tree1Likes
  • 1 Post By JosAH

Thread: Learning Java | Double Checking

  1. #1
    DREAM is offline LUCID
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default Learning Java | Double Checking

    I have began to start learning Java.
    Using "Lesson: Object-Oriented Programming Concepts"

    Lesson may be found here.

    Anyways, I'm learning about real-world objects and I'd just like to make sure I have the concept of behavior and state.

    I know this is very simple, but I'd like to be positive I understand it.

    Real world object = Door

    State = Open, Closed, Material, Color.

    Behavior = Open, Closed, unlocked, locked.

    EDIT: I'll most likely add on, if I don't completely comprehend the concept of Software Objects.

    Please keep flame down to a minimum.
    Last edited by DREAM; 08-07-2013 at 06:41 PM.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Learning Java | Double Checking

    Quote Originally Posted by DREAM View Post
    Please keep flame down to a minimum.
    This is the only part of this question that's going to illicit any "flame".

    Anyway, I would say you're on the right track, but be careful about how you word your behaviors. They're mostly verbs such as open, close, unlock, and lock. The words you have listed would be closer to states, imho. An object goes through a behavior to reach a state.

    But this isn't an exact science, so I wouldn't worry too much about getting the theory absolutely perfect. Write some code; it's the best way to learn how to program.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,776
    Blog Entries
    7
    Rep Power
    21

    Default Re: Learning Java | Double Checking

    I've never seen a wooden door turn into steel; I don't think 'material' is a state; it's a property.

    kind regards,

    Jos
    KevinWorkman likes this.
    cenosillicaphobia: the fear for an empty beer glass

  4. #4
    DREAM is offline LUCID
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default Re: Learning Java | Double Checking

    Quote Originally Posted by KevinWorkman View Post
    This is the only part of this question that's going to illicit any "flame".

    Anyway, I would say you're on the right track, but be careful about how you word your behaviors. They're mostly verbs such as open, close, unlock, and lock. The words you have listed would be closer to states, imho. An object goes through a behavior to reach a state.

    But this isn't an exact science, so I wouldn't worry too much about getting the theory absolutely perfect. Write some code; it's the best way to learn how to program.
    My apologizes, I typically use a different forum and it seems people tend to flame a lot there.

    Thank you for the response.

    Using what you've told me, I may now better myself. As well, I'll be more careful about what words I choose for behaviors.


    Quote Originally Posted by JosAH View Post
    I've never seen a wooden door turn into steel; I don't think 'material' is a state; it's a property.

    kind regards,

    Jos
    You have a point.

    Thanks for the response.

    @request closed thread

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Learning Java | Double Checking

    Quote Originally Posted by DREAM View Post
    I typically use a different forum and it seems people tend to flame a lot there.
    Curious: which one? People tend to not stick to one forum so the forum you were using is probably filled with people also posting here :)

    Perhaps your idea of what constitutes a flame is just wrong though. For example: do you think that this exact statement I'm making is a flame? If so: I'm right. I'm just making a purely neutral observation, but you may choose to be offended by it because I'm turning you into the source of the problem.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    DREAM is offline LUCID
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default Re: Learning Java | Double Checking

    Quote Originally Posted by gimbal2 View Post
    Curious: which one? People tend to not stick to one forum so the forum you were using is probably filled with people also posting here :)

    Perhaps your idea of what constitutes a flame is just wrong though. For example: do you think that this exact statement I'm making is a flame? If so: I'm right. I'm just making a purely neutral observation, but you may choose to be offended by it because I'm turning you into the source of the problem.
    The forum domain is Rune-Server

    I'm aware what flaming is, and no of course I don't think your post is considered flame.

    I'd base more along the lines, of harassment, excessive rudeness, racism, negative reply's for no reason. etc.

  7. #7
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Learning Java | Double Checking

    Sheesh, I thought you were talking about another Java programming forum! Never mind, moving along.

    BTW: you'd think I'm kidding you but I've been called a douche for less.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  8. #8
    DREAM is offline LUCID
    Join Date
    Aug 2013
    Posts
    6
    Rep Power
    0

    Default Re: Learning Java | Double Checking

    Quote Originally Posted by gimbal2 View Post
    Sheesh, I thought you were talking about another Java programming forum! Never mind, moving along.

    BTW: you'd think I'm kidding you but I've been called a douche for less.
    A large portion of it is Java Programming (Based off of Runescape)

    Regardless, I am way off topic.

  9. #9
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Learning Java | Double Checking

    Yes but there are forums and there are forums relating to games. Check out the minecraft forums, if it weren't moderated strictly the thing would consume the earth through its own misery.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Replies: 1
    Last Post: 05-08-2013, 08:19 PM
  2. Java Learning
    By JTUS in forum New To Java
    Replies: 2
    Last Post: 12-12-2011, 01:30 AM
  3. Replies: 12
    Last Post: 06-14-2011, 05:55 PM
  4. Learning Java...
    By Learning Java in forum New To Java
    Replies: 2
    Last Post: 09-24-2010, 10:03 PM
  5. Pls Help me in learning Java
    By SimranK in forum New To Java
    Replies: 6
    Last Post: 06-24-2010, 08:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •