 Hello guys crypto grounds here. Welcome back to another C sharp crash course video. This is episode 8 in today We're gonna be doing two string methods inside the class. So Before we get started right now, I'm still in my static class This is an issue because two string cannot be overrided in a class now. The reason why is because when we do dot two string Here we're doing temp We're doing temp dot To It's a lower case We're doing temp to string Right, so basically this is an object, right? Now that's different from doing a class while this is a static class that is basically doing a dot To string that doesn't really work that way Now if you try to do this It gives you an error saying that you can't to string a static class because that's not what they're really meant for All right So make sure we get rid of the static. So you would delete this or you just make a new class, right? So pretend those are just spaces, right? Okay, so we have our class looks kind of funky. I know Let me rewrite it. All right. I rewritten my class and now we're gonna finally override this So what we do here is write public override string to string So now what we do here is we return a string. That's pretty much it. So let's just say we want to You know print our entire thing basically you can do Return We can add like a high Plus number But what will this print out since we're not changing anything it'll literally just print out high to no space, right? Now what we can do better. I should do this a video on this. Maybe a string formatting We can just literally just add a dollar sign and do High space curly brace and we play our variable and then and that Now if we go back to our main class, we already have our object declared. We can simply do temp dot to string pretty Cool. And now when you start your code, it will print out high to high space to That is it. That is how you override the two string method in your class All right. Thank you guys for watching. I hope you guys enjoyed this one If you did make sure you leave a like drop comment below if you have any questions and subscribe to my channel and Turn on bells if you're new. Anyways, thank you so much for watching. Peace