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


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

class Dog {

int age;

	public Dog Main (int dogsAge) {

                   age = dogsAge;



Hi, @supercodervipasha ,

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

public Dog Main (int dogsAge) {


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