« All Events
10 AM – Intro To Java – Gamas
January 29, 2022 @ 10:00 am - 11:00 am
Homework
- Inside MonsterInheritance project, inside Monster.java, create a new method: doArrowDamage(int damage). Inside the method, reduce the monster’s health.
- Inside MonsterSystem.java, when user attack monster with arrow, call this monster.doArrowDamage(…).
- Inside WaterGollem.java, override doArrowDamage(int damage) so it will print “Water Gollem is immune to arrow attack. No damage is done”.
- On top on this on your Android Temperature Converter App, please add 2 Text Fields the “Fahrenheit” and the “Celcius” labels like below. No need to worry about the “Fahrenheit To Celcius” drop down menu.