Answered step by step
Verified Expert Solution
Link Copied!

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.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

If P (A) > 0, P (B) > 0 and P (A) Answered: 1 week ago

Answered: 1 week ago