Hi,,
I am new to programming languages..
I want this problem to be resolved.
Consider a situation of three class.. C1, C2 & C3.
Class C3 has a method that receives the object as the arguement.
class C3 {
public void xxxxx(Object ob)
}
I want the arguement of the method to be capable of taking the object of any class and display/call the methods of the class object that is passed to the method.
For eg: if C1 object is passed first time.. thn the methods of C1 should be able to access..
if C2 object is passed next time. thn the methods of C2 should be able to access..
I thank you in advance for solving my problem
I am new to programming languages..
I want this problem to be resolved.
Consider a situation of three class.. C1, C2 & C3.
Class C3 has a method that receives the object as the arguement.
class C3 {
public void xxxxx(Object ob)
}
I want the arguement of the method to be capable of taking the object of any class and display/call the methods of the class object that is passed to the method.
For eg: if C1 object is passed first time.. thn the methods of C1 should be able to access..
if C2 object is passed next time. thn the methods of C2 should be able to access..
I thank you in advance for solving my problem
Comment