Results 1 to 5 of 5
Thread: Why is my dog an Object?
- 09-03-2012, 06:28 AM #1
Member
- Join Date
- Sep 2012
- Posts
- 2
- Rep Power
- 0
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.
- 09-03-2012, 10:47 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,448
- Rep Power
- 16
Re: Why is my dog an Object?
What else would you have called it?
Please do not ask for code as refusal often offends.
- 09-03-2012, 04:16 PM #3
Java Rookie
- Join Date
- Aug 2012
- Posts
- 20
- Rep Power
- 0
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.
- 09-04-2012, 03:26 AM #4
Member
- Join Date
- Sep 2012
- Posts
- 2
- Rep Power
- 0
Re: Why is my dog an Object?
Don't think it really matters what I would call it, just curious to know why.
- 09-04-2012, 09:29 AM #5
Moderator
- Join Date
- Apr 2009
- Posts
- 10,448
- Rep Power
- 16
Similar Threads
-
Insert class file as object in a table & read the object from the blob.
By facemeguru in forum New To JavaReplies: 1Last Post: 02-02-2011, 06:11 PM -
Create object of unknown class, based on existing object
By Zack in forum New To JavaReplies: 2Last Post: 06-22-2010, 04:29 AM -
[Paremeters] in a method(Object expA, Object expB){}
By Unsub in forum New To JavaReplies: 2Last Post: 01-29-2010, 02:01 AM -
how to pass an arraylist from an object back to the parent object that it was created
By george_a in forum New To JavaReplies: 1Last Post: 03-04-2009, 06:14 PM -
Parsing a superclass object to subclass object dynamicly
By Andrefs in forum Advanced JavaReplies: 1Last Post: 07-22-2008, 04:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks