adeeb alexander wrote:Hi all.
I have 2 class A and B. I passed values to B constructor n done some thing and sent values back to class A method. Below is the code. i think there is much more better solution than this. Bcauz i am a noob.
Perhaps it's me, but I'm not sure I understand just what your problem is. What is working/not working with this code? What in particular bugs you? And also, just what is this code supposed to do.
Also, just to be sure, you do know that this is not a constructor but rather a dangerously named method, correct?
edit: ah, you've posted the second class, AndTest. One point to make, if this is truly a
test class, then it is my impression that you shouldn't have the class you are testing, And, call methods from the tester, TestAnd, that the first class should have no knowledge of the second.
Much luck! Pete