Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27486
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2014-02-11 01:27 -0800 |
| References | <705891c8-b170-44c0-866f-48eec7b38c4d@googlegroups.com> <overwriting-20140211095259@ram.dialup.fu-berlin.de> <e34ad319-598a-4872-b90c-64a16d35cdac@googlegroups.com> <access-20140211101604@ram.dialup.fu-berlin.de> |
| Message-ID | <6b78f736-cf64-4a0b-8f83-82beb1aba0d2@googlegroups.com> (permalink) |
| Subject | Re: Unable to Overload toString for Object |
| From | Ojesh Dugar <ojesh.u@gmail.com> |
On Tuesday, February 11, 2014 2:47:27 PM UTC+5:30, Stefan Ram wrote: > Ojesh Dugar <ojesh.u@gmail.com> writes: > > >But my problem still remains how do i ACCESS the content of »createResult« which is not instance of my class?? > > > > In Java and OOP, one prefers to hide the content. This is > > called »information hiding« or »encapsulation«. Objects > Thanks a lot. I'll work on it. > instead have »behavior«. > > > > What comes most close to »access the content of an object«, > > would be to read the documentation of the class of the object. > > > > When »o« is an object, you can get its class with »o.getClass()«. > > When the class is being defined in a library or program, someone > > should have written a documentation for it, and you should read > > that documentation to learn how to get information from the object > > (using your point of view, although we prefer not to think of > > objects as information containers but rather of entities with behavior).
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar | Unroll thread
Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-10 22:59 -0800
Re: Unable to Overload toString for Object leif.roar@invalid.com (Leif Roar Moldskred) - 2014-02-11 02:40 -0600
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-11 01:03 -0800
Re: Unable to Overload toString for Object Lew <lewbloch@gmail.com> - 2014-02-11 15:49 -0800
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-12 00:38 -0800
Re: Unable to Overload toString for Object markspace <markspace@nospam.nospam> - 2014-02-12 10:37 -0800
Re: Unable to Overload toString for Object Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-02-12 13:57 -0500
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-12 20:24 -0800
Re: Unable to Overload toString for Object Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-02-13 08:29 -0500
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-12 20:58 -0800
Re: Unable to Overload toString for Object markspace <markspace@nospam.nospam> - 2014-02-12 21:29 -0800
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-13 00:59 -0800
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-11 01:06 -0800
Re: Unable to Overload toString for Object Ojesh Dugar <ojesh.u@gmail.com> - 2014-02-11 01:27 -0800
csiph-web