Hi need help with my homework.
can any body help??
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi need help with my homework.
can any body help??
If you are having problems with your code, post the code and the questions.
If you don't understand my answer, don't ignore it, ask a question.
here is the Question
Write an interface Sporty that has two methods: exercise(int), and getReady(),
where those methods return no values.
2. Write header of class ActiveHoverFrog that inherits HoverFrog class and implements
Sporty interface. Write the following methods in class ActiveHoverFrog:
a. Write zero argument constructor of ActiveHoverFrog, where it calls parent
constructor to initialise inherited attributes.
b. Implement getReady() method as follows:
on receipt of this method, an instance should turned into Red, goes directly to height 3
and moves one stone towards stone 6 before returning directly to ground level again.
This is repeated until it is at stone 6.
c. Implement exercise(int n) method as follows:
on receipt of this method, an instance should executes the number of exercises indicated
by the message’s argument. Each exercise consists of hovering up by 1, moving to the
left, hovering down by 1, and moving to the right. After finishing whole exercises a
dialog box with a message "It's Done" is displayed.
That looks like your assignment not a specific question about the code you are supposed to write.
Pick a part of the assignment, design the code you need to solve that part, code it, compile it, test it. When it works, pick another part and do it again.
When you have problems or questions, post you code and questoions.
If you don't understand my answer, don't ignore it, ask a question.