logo

Crowdly

Classe  Guerrer  - 0,75 punts Escriu una classe  Guerrer  que hereti de  P...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

  1. Classe Guerrer - 0,75 punts

Escriu una classe Guerrer que hereti de Personatge, tingui l'atribut forca i implementi atacar() retornant:

nivell * 2 + forca

 

Valida que forca no sigui negativa.

More questions like this

Want instant access to all verified answers on www.insbaixcamp.cat?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!