+ 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 Respostas
+ 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