• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

h e l p ...object concept

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
This is the 1st time I am takin a ship of Java cup.
Sooo...I have some doubts. Like....
1.Wht. is the concept of Object? One way...I wanna know What is Object?
2.Relation bt. Object and Object Ref.

Ratul Banerjee.
*************T H A N K S IN A D V A N C E ****************
Round 1
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
rat ban
consider a class as a template used to cast out objects. u use a class to combine a definition of data and methods (functions that can be carried out on that data). u can instantiate a class to form objects of that class. each of the objects that u create using say,
Object o1 = new Object();
has its own copy of data and methods of the class type it is an instance of. o1 here, is a reference to the object created by new Object(). a reference is similar to a pointer(maintained internally by JVM) to the object which u create.
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
to add to what Sweekriti has said
Object is the blueprint and in Java everthing
flows from an object.
When create a mould of the object and assign a name,
the name is the object reference.
regards
venkat
 
venkatesan Rajagopalan
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
just to add to what i was said before.
The constructors, which are basically named as the
class name but without any return types and that
which creats class instances are called objects.
regds
venkat
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic