Objects - Java Defining a class-constructor & creating an Instance 7/13


#1



https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/objects?action=resume



Replace this line with your code. 
<img src="//codecademy-discourse.s3.amazonaws.com/original/4X/3/6/8/368801888a32e082f19a967396d18970813b10af.png" width="690" height="387">


#2

Do you see, in the example, how we made a new Car?

Car myFastCar = new Car(2007);

Follow that pattern when making your new Dog.


#3

@technut123,
Have a look at the documentation
https://docs.oracle.com/javase/tutorial/java/javaOO/classes.html


#4

In the main, type new Dog instead of age. Worked for me.


#7