Why is line 4 a constructor but lines, 7, 10, 13, and possibly 16(?) methods?

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/methods-1?action=lesson_resume&link_content_target=interstitial_lesson

<In what way does your code behave incorrectly? Include ALL error messages.>

```

class Dog extends Animal {

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 int getAge() {
return age;
}
public static void main(String args) {

Dog spike = new Dog(7);
spike.bark();
spike.run(600);
int spikeAge = spike.getAge();
System.out.println(spikeAge);
spike.checkStatus();
}

}

<do not remove the three backticks above>

@boardrockstar46273,
With a google search
== discussions / opinions ==
java constructor vs method site:stackoverflow.com
for instance
http://stackoverflow.com/questions/19061599/methods-vs-constructors-in-java

or
== the Book ==
constructor vs method site:oracle.com

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.