Question: I cannot figure out why i keep getting this error for illegal start of expression for the private field in java. public abstract class Dragon
I cannot figure out why i keep getting this error for illegal start of expression for the private field in java.

public abstract class Dragon -i @param args the command line arguments public static void main (String[] args) i / TODo code application logic here rivate final int breathDamage private String name: //Default constructor public Dragon) t name - "GenericDragon" breathDamage10 //argumented constructor public Dragon (int breathDamage, String name) f this.breathDamage -breathDamage this.name- name //Getters public int getBreathDamage )i return breathDamage public String getName) return name //abstract method abstract boolean isFriendly )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
