Doubts on parenthesis order


#1



I have doubts about the structure of the program where you create a dog that barfs. what exactly must be the order of the parenthesis? what's in what?

it looks like it's

CLASS
{
CONTRUCTOR
{ }
METHOD
{ }
MAIN
{ }
}

so why is the main inside the class? it is not explained anywhere.

Blockquote


https://www.codecademy.com/courses/learn-java/lessons/object-oriented-programming/exercises/methods-2?action=lesson_resume&link_content_target=interstitial_lesson


Replace this line with your code.


#2

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