 Hello guys Crypto grounds here welcome back to another C sharp crash course video this episode 3 and today We're gonna be dipping our toes in classes This will be a short video as I want to explain the basics and nothing really else inside it Anyways, if you enjoyed this video make sure you smash that like button subscribe to my channel if you're new turn on Those notifications so you can get notified for every single video and comment your feedback and suggestions below anyways Let's hop into it So I have reformatted my code from the previous video So we have a namespace called a state and a nested namespace called blueprints blueprints We will use for our state namespace to create objects or create Blueprint classes, okay, so let's create our first class public class We're gonna call this a state Okay, now the reason why we're creating this is because we want to be able to create districts inside our state But in order to do that we have to do that inside of a class So I'm just gonna create a a class For a state. So what is a class? Well a class is used for creating objects It is the Bain foundation for object oriented programming and it's not only used in C sharp it's used in Java as well and these can be used for Creating static instances or references to methods inside that class such as like system.math all the methods inside there So yes static methods can be accessed from classes We can create objects with them. So such as a state right here right now. It's not really an object We're just using we're just making things happen in here But we're eventually gonna create a District class which we will use to create district objects. Okay, so let's do that So we're gonna create a class in our proof friends our blueprints called district Okay, now what the cool thing is that we can create district objects in here Okay, so all you got to do is import this namespace wherever this is and That would be using state dot blues dot blueprints, which is this right here And now we have access to District if we get rid of this line You will not be able to create it. So let's give it a variable name. We're just gonna call it a district District one. Okay Now it doesn't have anything right now It's just uh, you guys make this public right now It's just an empty object and there's absolutely nothing in here So it's pretty useless, but in the future video in the next video I'm going to get into constructors. Anyways, if you enjoyed this short video Make sure you smash that like button subscribe to my channel and turn on this notification Suggest this video to other friends who are interested in wanting to learn how to code and see sharp If you want to support me check out my patreon link description and comment anything you want Anyways, I'll see you guys in the next one. Peace