LearnJava

1 view
Skip to first unread message

Jacob Bakke

unread,
Aug 24, 2016, 12:16:55 PM8/24/16
to Codecademy Projects Help Forum
I need some help with lesson 7:objects.
this is my code: "class Dog {
 
int age;
public Dog(int dogsAge) {
 
  age = dogsAge;
 
}
  public static void main(String[] args){
    Dog spike = new dogsAge(15);
   
 }
} "



and this is the error I'm getting:
"Dog.java:13: error: cannot find symbol
       Dog spike = new dogsAge(15);
                                    ^
symbol: class dogsAge
location: class Dog 1 error" 

Jacob Bakke

unread,
Aug 24, 2016, 12:18:23 PM8/24/16
to Codecademy Projects Help Forum
I cant figure out what I'm doing wrong?!?
Reply all
Reply to author
Forward
0 new messages