 Hello guys, it's CryptoGround here welcome back to another She-Shop Crash Course video This is episode 2 and today we're going to be doing classes. We're currently at 172 subscribers So make sure you subscribe like that video if you're enjoying it. Nice to get on with it So basically a class is where you declare your methods and your fields and your which is our your variables So we're gonna make a class real quick. This should be a pretty easy one So first this is dead marker. We start with defining as public And then we use the keyword class So we know this is a class and For your first class or at least one of your classes in your script. It's gotta be the same one as your script name So let's say our script name is school.cs Let's say we're making a school. All right, then we got to make this class School so that we have our first class school one thing. I want to show you real quick. I'm not gonna get to this Now but here you'll probably see this in some videos as you see this colon right here, and you'll see something like I Disposable this is an interface being implemented into the code So I personally have never used them really so I'm not gonna explain what they are because I don't exactly I can't really exactly explain what they are stuff. Never use them So we're just gonna ignore that but I just thought I'd show you real quick So basically this is your class. It's pretty easy to set up and this is where you can have your Variables your fields such as public double Number or you can have a string public string Name and so on that's it so Now if you're going to create an object out of like in a main like a main Class like this. Let's move this up here. What we can do is something like this. Let's create another class public Class Classroom Okay, so what we can do here is every single class has a few methods Predefined in it. We have a public string to string So if we return this classroom in here somewhere it'll print out all your variables in a special way by default so we can overwrite it, which I'll do in a different video and we can also have a bunch of stuff in here and Each of them has a Default constructor, which is where we define our default variables for the for the stuff inside the class and If we create it up here, we can make a custom stuff in here, which I'll that'll be a whole different video So basically we can create a classroom or we can create an object by doing this public classroom spell that wrong room equals New oh we got we got to make a name. Let's just put room one equals new Classroom like that That is how you declare a new object or that's how you create a new class Class type classroom Just like that. And that is also how you write one. Hopefully that makes sense. You guys have any questions Let me down in the comments below Hopefully I didn't forget anything. I'm just Doing this based on memory. All right. Anyways, have a good day. Thanks for watching Don't forget to subscribe and like the video and turn on notifications. Peace