Three things for starters:
- You can only have one ExampleClass in one namespace (if you don’t use namespaces, then in your project)
- You always need to put your MonoBehaviours in a cs file with the same name as the class is, so ExampleClass always should be in a file named ExampleClass.cs
- if and when you post code on the forum, use the CODE tags, so it can be readable Using code tags properly
Do this modifications and if you still have errors, please, post here again with the description of what’s happening.