Results 1 to 5 of 5
  1. #1
    Iris is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default Why is my dog an Object?

    I get the whole things about state(s) and behavior(s), but having a hard time wrapping my head around the idea that a dog will be considered an object. My TV is an object, the printer is an object: All these require some interaction from me to alter their state. A dog does not need an interaction from me to alter it's state (sleeping, walking, running ... ). Trying to understand why the Object class was chosen as the super class for all classes.

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default Re: Why is my dog an Object?

    What else would you have called it?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

  3. #3
    bob 6 is offline Java Rookie
    Join Date
    Aug 2012
    Posts
    20
    Rep Power
    0

    Default Re: Why is my dog an Object?

    I don't understand your question... You don't need to interact with something for it to be an object. Interacting is basically asking the Object to do a service. The bottom line: EVERYTHING is an Object.

  4. #4
    Iris is offline Member
    Join Date
    Sep 2012
    Posts
    2
    Rep Power
    0

    Default Re: Why is my dog an Object?

    Don't think it really matters what I would call it, just curious to know why.

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,817
    Rep Power
    19

    Default Re: Why is my dog an Object?

    Because Thing Oriented Programming sounded odd?
    Though TOP is possibly a better acronym than OOP.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 1
    Last Post: 02-02-2011, 06:11 PM
  2. Replies: 2
    Last Post: 06-22-2010, 04:29 AM
  3. Replies: 2
    Last Post: 01-29-2010, 02:01 AM
  4. Replies: 1
    Last Post: 03-04-2009, 06:14 PM
  5. Replies: 1
    Last Post: 07-22-2008, 04:27 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
  •