Help me?OOP JAVA

class Dog {

public static void main(String[] args) {
        
}

}

Add a class constructor called Dog to the class.
I'm a newbie so i need help from you :)

Hi @editmylife,
I’m afraid we can’t give you a direct answer, but I can give you the syntax for a class constructor!

public className(parameters) {
// some OOP instance variables
}

I hope you reread the tutorial, and have it all figured out! :slight_smile:

1 Like