![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hallo. Can somebody give me an answer please: I want to have an array of objects of two diferent classes: e.g. "humanPlayer" and "computerPlayer". I want to scan the array "players" and run the method "calculateAnswer()" for a computerPlayer and "getAnswer()" for a humanPlayer. How can I do it? If I make: How can I do that it works: Thanks a lot. Villanueva
Replies:
|
Sponsored Links
|