logo

Crowdly

Metodes comuns de  Personatge  - 0,75 punts Implementa a  Personatge : ...

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

  1. Metodes comuns de Personatge - 0,75 punts

Implementa a Personatge:

  • estaViu()
  • rebreDany(int dany), que llanci IllegalArgumentException si el dany es negatiu.
  • getNom()
  • toString()

Recorda que la vida no ha de quedar mai per sota de 0.

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!