Include in the document:
Dog myDog = new Dog ("Lab","Woof");
System.out.println(myDog.barkLoud());
System.out.println(myDog.barkSoft());
myDog.setAge(5);
System.out.print(myDog.giveBreed()+" says "
+ myDog.givBark());
System.out.println(" and in human years would
be "+myDog.giveAge7());
This would print :
WOOF
woof
Lab says Woof and in human years would be 35.
Program to use Dog class at minimum must
Java Lab3 Dog class |
|
|
Design completed
|
10
|
|
Dog class | ||
class constructor(s) described
|
10
|
|
Prologue indicating programmer, purpose,
class and date, all methods and variables documented as to purpose
|
5
|
|
private instance variable described
|
5
|
|
UseDog (Driver Program) | ||
Prologue indicating programmer, purpose,
class and date
|
5
|
|
sufficient documentation that code works
according to a test plan
|
5
|
|
output is neat
|
10
|
|
compiles correctly and all answers
correct
|
45
|
|
all variables identified in code as to purpose
and neat meaningful code and comments
|
5
|
|
GRADE: |
100
|