Pakuri.java - public class Pakuri String species = null int...

This preview shows page 1 out of 1 page.

public class Pakuri { String species = null; int attack, defense, speed; public Pakuri(String species) { //constructor this.species = species; attack = (species.length() * 7) + 9; defense = (species.length() * 5) + 17; speed = (species.length() * 6) + 13; } public String getSpecies() { //returns species return species; } public int getAttack() { //returns attack value return attack;

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture