class Dog {
int age;
public Dog(int dogsAge) {
age = dogsAge;
}
public void bark() {
System.out.println("Woof!");
}
public void run(int feet) {
System.out.println("Your dog ran" + feet + "feet!");
}
public in getAge() { <<<<<<<<<<<<What is this !!!!!!!!
return age;
}
public static void main(String[] args) {
Dog spike = new Dog(5);
spike.bark();
spike.run(20);
}
}
I think - " You’ve written ‘in’ instead of ‘int’ " would have sufficed - hyperbolic use of exclamation marks
just seems a bit unseemly and in my opinion could be misinterpreted . Some people are sensitive.
I’m not saying our fellow coder is , but it’s a risk. Politeness can be undervalued.