Learning Java by Building Android  Games
上QQ阅读APP看书,第一时间看更新

Looking at the code for a class

Let's say we are making war simulation game. It is a game where you get to micro-manage your troops in battle. Amongst others, we would probably need a class to represent a soldier.