Originally posted by neo matrix:
Hi All,
Need your help. I have one question? I have two classes and both have same method say method X. If I call this method (X)from a different class, which class is being called. Please post an answer, thanks in advance.
It depends on how it is referenced. Methods are referred to by references (static methods can also be referred to by the class name).
If Method(X) is not refereenced, then it will be assumed to be either the current class or the this object. To answer your question, the answer is neither of the two classes with the Method() method -- it is assumed to be part of the calling class.
Henry