you have declared nob as an instance variable for the class. That means that each and every 'Dog' object will have an integer called 'nob'.
DogTestDrive.java:6: <identifier> expected
void bark(nob) {
^
DogTestDrive.java:26: ')' expected
}
^
2 errors
Powerbook:~/javaeg matt$ javac DogTestDrive.java
DogTestDrive.java:6: <identifier> expected
void bark(nob) {
^
DogTestDrive.java:26: ')' expected
}
^
2 errors
null says ruff!
last dogs name is Bart
Fred says ruff!
Marge says ruff!
Bart says ruff!
Was that not what I did when I typed in public class Player, which is in a file called Player.javaclass Player is public, should be declared in a file named Player.java
GuessGame.java:65: class Player is public, should be declared in a file named Player.java
public class Player {
^
GuessGame.java:74: class GameLauncher is public, should be declared in a file named GameLauncher.java
public class GameLauncher {
^
2 errors