posted 17 years ago
hi,
what i found in the code that your test() method of Swim class is using throws statement. So to compile it either you remove throws statement or put try-catch block in the main method of testFish class and use throw statement in test() method's catch block. If you want your caller method shd take care of exception then use throw statement in test method.
anyone Correct me if i m wrong..
Thx,
Nitin
[ June 03, 2006: Message edited by: nitin pokhriyal ]
[ June 03, 2006: Message edited by: nitin pokhriyal ]