+ 1
Help me please
https://code.sololearn.com/cuwr2Aa71KEP/?ref=app I don’t understand what the problem is
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)
+ 3
Thank you everyone 🙏🏻
+ 2
Кемран
Read my first statement again.
+ 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()
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
0
I don't understand, I did it right Dog bob = new Dog() what else did I miss?
0
the main method isnt inside the class