 Hello guys crypto grounds here. Welcome back to another C sharp crash course video. This is episode three and today we're going to be talking about constructors inside classes. So as I mentioned before constructors are already predefined in each class but they don't need to be used all the time just for school. We don't really need to use them because they're not creating a new school every time unless we have a class such as like a district. We have numerous schools. Okay. So we'll be using instructors for our classroom here. So to create a constructor all you got to do is write this marker is bad still public classroom. Nothing else just public classroom. Okay. So we're going to run short on space though but what we're going to do here is that this already exists inside your thing that basically sets string as the name as empty and capacity is zero. So what if we want to create a classroom with our own settings or own default stuff. What we can do here is get rid of this right here. You can put string n for name and int c for capacity. Of course you probably want better names on that but that's just for example. So now in here what we can do is set name to our input. So we just do name equals n and then we set capacity to see. All right. So I forgot to explain this earlier but the reason why these are privates because we do not want to be able to change classrooms default stuff. All right. We'll have to make methods in order to change that just for security issues or security purposes. So now in here we're going to create our classroom again. So what we do now we write the public classroom. Let's do tech. That's our classroom is going to be equal to new. We're going to run out of space but this would be on the same line. So let's say this is one two three and this is four. All right. And then we do new classroom and in here we type whatever we want. So far string our name we're going to put computer science. We're just going to do computers okay. And now for the capacity let's say we want 20 just like that. So now we have tech it is the name is computers and it's got a capacity of 20. All right. So that is it for this video is really short sweet and simple. Hope that makes sense. You guys have any questions just let me know. Just let me know down in the comments. Don't forget to subscribe like the video and turn on the bells if you enjoyed the video anyway. Thanks for watching.