Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please complete all parts to this. Thank you!! First photo is the instructions the rest are codes for pokemonfield and Pokmon. 5.10 zyLab5: Pokemon class
Please complete all parts to this. Thank you!! First photo is the instructions the rest are codes for pokemonfield and Pokmon.
5.10 zyLab5: Pokemon class v.. , work with two java files in this lab. . Pokemon.java-Class definition . PokemonField,java-Contains main0 method 1. Complete the Pokemon class with the following specifications: (1) add the following four private fields *String name * int maxHp * int hitPoints * int attackPoints (2) add a constructor, which takes three parameters, the first one is used to initialize name, the second one is used to initialize both maxHP and hitPoints, and the third one is used to initialize attackPoints (3) add public methods (mutators): setHitPoints, setAttackPoints (4) add public methods (accessors): getName,getHitPoints,getAtrackPoints 2. Complete the fight method in PokenonField java LAB ACTIVITY 5.10.1: zyLab5: Pokemon class Load defaulit template Current file Pokemon.java Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started