How to make a player class that holds lives.(inheritance)
<p>Im trying to make a player class that has 10 lives and has a damage method and a checkDeath method the The damage method takes on life away from the player and the check death method should check if the player is dead by seeing if the player has less than one life left an return true if the player is dead or false.</p>

<p>This is my code so far:</p>

<pre><code>public class Player {
    protected boolean death = true;
    Player mylife= new Player();//Dont know how to assign it 10 lives

public void damage(){
    if (myLife &lt; 1) {
               return true;
            else { 
            return false;

}
public void checkDeath() {

}
</code></pre>

<p>}</p>
