Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions

Question

1. Prepare a flowchart of Dr. Mahalees service encounters.

Answered: 1 week ago