• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

classess & objects

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends, what is the difference between class,an object and instance
in detail it would be very helpful for me .Thank u
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why not look it up. There are many, many, many websites which your can research.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Objects can be compared to the objects in the external world, such as your computer, your house, animals and plants. Ina an application you can have objects such as buttons and list boxes.

Most objects are made up of other objects - your house has rooms, doors, windows and so on. If we know that we can build a house by combining these objects then we do not need to worry about the design and structure of each object, which may be very complex. Similarly in object orientated programming (OOP) if we have objects which behave in a defined way, we can combine them together to make an application without worrying about what happens inside each object.

The difference between objects and classes is that many programmers become confused between objects and classes. A class is the defenition for a group of similar objects with similar properties. For example, a house, a flat and an igloo all belong to the building class. In OOP jargon, the objects belonging to a class are instances of that class

Here are some useful links:

www.medsch.wisc.edu/~milenkvc/pdf/javaproxy.htm
http://juicystudio.com/tutorial/java/object.asp
http://www.boloji.com/java/j003.htm


Hope that i helped alittle
 
Alas, poor Yorick, he knew this tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic