CSharp Classes = Scripts? Difference between private string and normal string?

I just started learning CSharp / C# but I wanted to know if classes are basically scripts. Also, if they are, why do people make ten different scripts when they can use one script with ten classes? Also, what is the difference between private string and normal string (ex: string asdf;)? What is a vector? And vector3? What do use new for?

You can jam 12 classes into 1 file if you would like but that’s super messy, hard to work with, and likely won’t function if you are deriving from MonoGame in order to have you scripts participate in the component system inside unity.

When I first started this helped me a lot. A class is a “folder” and contains methods which are basically “files”. A class holds a number of methods that are logically grouped together (and often depend on one another).

People encapsulate into 1 script → 1 file because it makes sense.

The exposure level of a parameter defines what can access it. A public parameter can be accessed from classes that inherit from the base class (the one the public var is declared in), or from other objects accessing the parameter through the component system.