cdietschrun
CAGiversary!
- Feedback
- 17 (100%)
I am doing a Java homework problem and I need to "[For the above problems, DO] NOT modify Turtle.java class, instead, write your own subclass MyTurtle.java to implement the required methods."
I have my MyTurtle.java and the class declaration is:
public class MyTurtle extends Turtle { 4 methods in here }.
When I compile, it points the declaration line and says:
cannot find symbol
symbol : constructor Turtle()
location: class Turtle
Can anyone tell me if I have to import something? I have a Turtle.java that extends SimpleTurtle from SimpleTurtle.java. The stuff we were given is from a book so it has all kinds of .java's ready for us. And we use DrJava for these problems..so I don't know what's really going on.
Any help, much appreciated.
I have my MyTurtle.java and the class declaration is:
public class MyTurtle extends Turtle { 4 methods in here }.
When I compile, it points the declaration line and says:
cannot find symbol
symbol : constructor Turtle()
location: class Turtle
Can anyone tell me if I have to import something? I have a Turtle.java that extends SimpleTurtle from SimpleTurtle.java. The stuff we were given is from a book so it has all kinds of .java's ready for us. And we use DrJava for these problems..so I don't know what's really going on.
Any help, much appreciated.