Hello All,
This was my understanding regarding access to private members in a class.
What i thought was a private member cannot be accessed using any object instance. like
except it can only be called from member functions in a class.
In the above code although t1 is a instance of
test. the method print() can be called like t1.print(). The same concept will not work when the print is called througn an instance of test from some other class.
Can anyone throw some light on this.
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified