Do not cross post all over the place. As in the other thread which you hijacked there too, you should use code-tags when posting code.
This post should be in the scripting forums because it’s a syntax error you’ve created because it’s clear you should really look at a basic C# programming tutorial.
The code above isn’t how you create a class or MonoBehaviour in C#. A class defines curly braces { } to encapsulate what’s inside it. Almost any scripting tutorial in Unity would show you this so I’d recommend spinning a few up.