Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started