logo

Crowdly

Classe  Arquer  amb polimorfisme d'interfície  - 1 punt Escriu una classe ...

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

  1. Classe Arquer amb polimorfisme d'interfície - 1 punt

Escriu una classe Arquer que hereti de Personatge i implementi AtacDistancia. Ha de tenir l'atribut fletxes.

atacar() ha de fer:

  • Si fletxes > 0, resta una fletxa i retorna nivell * 2.
  • Si no queden fletxes, retorna 1.
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!