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.

I cannot figure out why i keep getting this error for illegal

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!