That’s not a dumb question at all but a very important one.
The computer does not know our human numbers, only 0s and 1s. Peope invented C# to make programming more convenient for us humans. We have multiple different integral numeric types such as byte, int and others.
In C#, we always deal with objects. int is a type. And 10, in your case, is an object of type int.
DamageDealer is a class and therefore also a type. We can create an object from that class. An object is a defined collection of data in memory, if you will. You assign that “package” to a variable of type DamageDealer.
If you find this a bit hard to grasp, maybe this example helps: Imagine your friend gave you their mobile number and you want to save it in your phone. You open the contacts and type their number into the field labelled “mobile” (or something like that).
mobile
is a variable, and it expects a sequence of specific characters (here: digits). Just one digit would not work. The whole mobile number forms an object. And this object gets assigned to mobile
. Then your smartphone will be able to process that data. When you click on the phone number, you can call your friend. Another example would be a birthday or any other date.
In C#, you have a data type named DateTime. Even though the date consists of integers, it’s a predefined collection of data. And if you create a “date”, you create an object of type DataTime.