CLASS name as an argument to a method
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   srirao_katakam
Posted On:   Monday, April 4, 2005 09:16 AM

what is the purpose in passing a class reference to a method in another class.

Re: CLASS name as an argument to a method

Posted By:   srini_vasan  
Posted On:   Thursday, April 7, 2005 02:42 AM

if you want to acccess the instance variables and methods of one class,

you have to create objet for that class.
but
if you want to access the class with variables which was set by other class,
you have to pass the class object to place where you need.
To pass the object ,we have to give the class name in which from object was created
About | Sitemap | Contact