Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Object meaning

 
Manoj Paul
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is object in Java?

Thanks
 
Campbell Ritchie
Sheriff
Pie
Posts: 49405
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic