5/13, won't let me continue even after following the info


#1



Dog.java:10: error: missing return statement
}
^
1 error


class Dog {


int age;
 

	public Dog Main (int dogsAge) {

                   age = dogsAge;
	}

}


#2

Hi, @supercodervipasha ,

You need to remove the name Main from the header of the Dog constructor here ...

public Dog Main (int dogsAge) {

#3

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