阅读背景:

在Java中共享两个类之间的对象

来源:互联网 

How do I share an object between two similar classes? For example,I would like to have two players in a game: Human and Computer They will be sharing a Deck class which has a variable : ArrayList cardList The human and computer object needs to access the cardList at the same time to draw cards during the gameplay.How do I share an object between two similar cl




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: