I don't understand 7/11 exercise :(

i dont understand whats this here
class Car {

int modelYear;

public Car(int year) {

   >  modelYear = year;
public static void main(String[] args){
    Car myFastCar = new Car(2007);


class Dog {

int age;

	public Dog(int dogsAge) {
    age = dogsAge;

  public static void main(String[] args) {
    Dog spike = new Dog(100);



So i did this and got passed but its like passing my school exams i still don’t know how that happened,

I have everything you have, but my dog is 5 and not 100. It won’t let me passed it. It keeps asking if I have created a dog constructor using the dog object. It tells me to be sure to indicate an integer parameter. I’m stuck.

i am no expert still figuring out but make sure ur D is uppercase ,

I reset the problem,and typed in exactly what I had before, and it worked.
Must be a glitch.


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