DogObject

In this program, you will make a class called Dog and a class called TestDog. Dog should not need a main() method.

Use individual methods in Dog for the following:
talk();
move();
happy();
angry();
hair();
breed();
and some other attributes of Dog if you want....
You can just have them be System.out.println("woof") kind of statements.

Instantiate adog to make a dog object.
Use method calls in TestDog to call the methods

Comment your TestDog code into your Dog.java file so you don't have to print extra paper.

Make sure you comment your results.

Use the CodeFormatting technique to make your code printout readable.


Page Information

  • 11 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information


Update to PBwiki 2.0

An entirely new PBwiki experience, including folders and easier editing.

Convert Now for Free | Learn more