+ 1

Help me please

https://code.sololearn.com/cuwr2Aa71KEP/?ref=app I donā€™t understand what the problem is

21st Jul 2022, 9:00 AM
ŠšŠµŠ¼Ń€Š°Š½
ŠšŠµŠ¼Ń€Š°Š½ - avatar
7 Answers
+ 6
ŠšŠµŠ¼Ń€Š°Š½ Method should be inside class. Here is wrong. You need to go through the course again. class Dog { public string name; public int age; } static void Main(string[] args)
21st Jul 2022, 10:34 AM
AĶ¢J
AĶ¢J - avatar
+ 3
Thank you everyone šŸ™šŸ»
21st Jul 2022, 8:33 PM
ŠšŠµŠ¼Ń€Š°Š½
ŠšŠµŠ¼Ń€Š°Š½ - avatar
+ 2
ŠšŠµŠ¼Ń€Š°Š½ Read my first statement again.
21st Jul 2022, 9:38 AM
AĶ¢J
AĶ¢J - avatar
+ 1
ŠšŠµŠ¼Ń€Š°Š½ You have closed bracket } before the main method close after the main method main method should be inside class. Object creation is wrong there should be Dog bob = new Dog()
21st Jul 2022, 9:12 AM
AĶ¢J
AĶ¢J - avatar
0
it still doesn't work, it outputs this: ./Playground/file0.cs(14,15): error CS0116: A namespace cannot directly contain members such as fields or methods
21st Jul 2022, 9:21 AM
ŠšŠµŠ¼Ń€Š°Š½
ŠšŠµŠ¼Ń€Š°Š½ - avatar
0
I don't understand, I did it right Dog bob = new Dog() what else did I miss?
21st Jul 2022, 9:40 AM
ŠšŠµŠ¼Ń€Š°Š½
ŠšŠµŠ¼Ń€Š°Š½ - avatar
0
the main method isnt inside the class
21st Jul 2022, 4:56 PM
bwv822 šŸ‡ØšŸ‡¦
bwv822 šŸ‡ØšŸ‡¦ - avatar