3/13 stuck but not sure why


#1



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


Dog.java:7: error: illegal start of expression
public static void main(String[] args) {
^
Dog.java:7: error: illegal start of expression
public static void main(String[] args) {
^
Dog.java:7: error: ';' expected
public static void main(String[] args) {
^
Dog.java:7: error: '.class' expected
public static void main(String[] args) {
^
Dog.java:7: error: ';' expected
public static void main(String[] args) {
^
Dog.java:9: error: reached end of file while parsing
}
^
6 errors


class Dog {

  //The class constructor the Dog class
public Dog() {


	public static void main(String[] args) {

	}


#2

Hi it's missing the closing } og teh Dog class


#3


im confused


#4

you should close it like yjay

class Dog {

      //The class constructor the Dog class
      public Dog() {
	    public static void main(String[] args) {

	    }
    }//Here close the public Dog
}//here Close the class Dog

#5

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