You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Latios extends Animal implements Swimming, Flying
{
private int level;
private String toy;
public Latios()
{
super("Latios","#381: Latios will only open its heart to a Trainer with a compassionate spirit. \nThis Pokémon can fly faster than a jet plane by folding its forelegs to minimize air resistance.");
level = 30;
toy = "soul dew";
}
public Latios(String name, String description, String toy, int level)
{
super(name, description);
this.level = level;
this.toy = toy;
}
public void gainLevel()
{
level ++;
System.out.println("Latios gained a level!");
}
public void gainLevel(int n)
{
level += n;
System.out.println("Latios gained " + n + " levels!");