java class extends not working properly : Am playing a bit around with java and am learning step by step. To not write my whole life story, here it comes.

I am making a text game with some stats, a player, enemies, etc. For this I am using classes. Lately I came accross the "extends" function and am trying to implement it. I made a class character, which extends to player and enemy. When I execute the code it seems.as it wouldnt inherit anything. Would appreaciate any advice. Thanks!

P.S. which tags would be ok to use?


    import java.util.Random;
    
    public class Character
    {
        Random rand = new Random();
    
        int cc;
        int strength;
        int life;
            
        public int getCC()
        {
            return cc;
        }
            
        public void setCC(int c)
        {
            this.cc = c;
        }
            
            public int getStrength()
            {
                return strength;
            }
            
            public void setStrength(int s)
            {
                this.strength = s;
            }
            
            public int getLife()
            {
                return life;
            }
            
            public void setLife(int l)
            {
                this.life = l;
            }
    }
        
    public class Player extends Character
    {
        int cc = rand.nextInt(20)+51;
        int strength = rand.nextInt(3)+4;
        int life = rand.nextInt(5)+16;
    }
    
    public class Enemy extends Character
    {
        int cc = rand.nextInt(10)+31;
        int strength = rand.nextInt(3)+1;
        int life = rand.nextInt(5)+6;
    }
        
    class myClass
    {
        public static void main(String[] args)                                                       
        {
        Player argens = new Player();
        
        System.out.println("This is you:\n");
        System.out.println("Close Combat " + argens.getCC());
        System.out.println("Strength " + argens.getStrength());
        System.out.println("Life " + argens.getLife());
        
        
        Enemy kobold = new Enemy();
        
        fight (argens, kobold);
        
        fight (argens, kobold);
        }
    
        static void fight(Player p, Enemy e)
        {
    
            p.setLife(p.getLife() - e.getStrength());
    
    System.out.println("\nRemaining life");
    
    System.out.println(p.getLife());
    
    System.out.println(e.getLife());
    
        }
      
    }