• Post Reply Bookmark Topic Watch Topic
  • New Topic

what is objects in java?  RSS feed

 
nuthan gowda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
i want to now the real practical application of objects used in java.
 
Adinath Shirsath
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Object Oriented environment, everything is Object. Object have some state and behaviour. anything that you can think is an object.
e.g. If you are developing Banking application, objects are Account holder, Bank, Account are some objects which are associated in applications

hope it will help you
 
Adinath Shirsath
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
and Welcome to JavaRanch
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
all that can be abstract or real example: I, You, Dog etc..
one Dog is one object he has: color, ages,size, name.
you are one object too, because you have ages, name etc..

when you are programming in java for example all is one object your class � one object because you create one class that represent something real or abstract.

check this link there is one file about O.O is important.
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The only answer I came up with on that question is: 42!
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16058
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

For some background information on object-oriented programming, see Object-oriented programming in Wikipedia.

Some other useful links:

Lesson: Object-Oriented Programming Concepts in Sun's Java Tutorial
What is Object-Oriented Software?
What is OOP?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!