Meaningless Drivel is fun!*
The moose likes Swing / AWT / SWT and the fly likes Object meaning Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Object meaning" Watch "Object meaning" New topic
Author

Object meaning

Manoj Paul
Ranch Hand

Joined: Jan 18, 2007
Posts: 112
What is object in Java?

Thanks
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38508
    
  23
Should be asked on the beginners' forum.

It measn the same as "object" in other object-oriented languages, eg Eiffel, C#, Simula. It measn a computerised representation of "something" which has data (attributes, in Java called fields) and behaviour (it does something, which in Java is expressed through its methods).

What colour is a car?

"car" means a "class." "A car" is an "object."
The "car" class can accommodate colour, speed, direction, fuel consumption, engine type, etc, etc, etc.
"A car" might be a RED FORD, travelling SOUTH at 45 mph, using 1 gallon fuel for every 40 miles, with a Diesel engine.

You should know where to find the Java Tutorials, the Javaranch beginners' FAQ, etc. There are lots of websites which help to explain what an object is.
 
Don't get me started about those stupid light bulbs.
 
subject: Object meaning