 Hello Cryptograms here welcome back to another C-Shop Crash Course video today We're gonna be doing namespaces again because I forgot to show you some cool stuff that you can do with them So if you enjoyed this video make sure you smash that like button subscribe to my channel if you're new Comment your feedback suggestions questions and all that good stuff below and check out my other videos on top right corner Check out my patreon's in the description below. Let's get on with I have created um two static Or now they're static to static classes. Actually, this is gonna be static This is gonna be non-static, right? Okay, so what we're gonna try to do is we're gonna try to call this and from Each name space in here. Okay now. This is group dot one and this is group dot two So what's cool about this is that you can import if you have the same like Name I guess in the same format you can do extendable dot group, right? Or you can just do extendable dot group dot one or two, okay? So that's the cool thing with this right here. Let's start with the static or the non-static one, okay? This one right here So how we're gonna access this so we have created our group thing right here, right now we got a type extendable group dot two dot main dot and Our method in here now the problem is this is that this is a non-static method, right? So we can't really call this okay So we just make this static method or we can call that in a static or non-static method just like this and It should run just fine. So the thing is that we can't just import this, right? This is where our static class comes to save today. So what we do here is using extendable group dot one and Now you've probably seen me do this in the past and if you've watched my unity idle game tutorial videos Is the static, okay? So we're gonna add dot main to it, but we're also gonna add a static keyword to it, okay? So now what we can do here is that? We can do Run Okay, that's it That's pretty much it but now the thing is that it couldn't confuse between Which one is gonna use one or two So you see we get this ambiguous Right here. So what we do is we do the main dot run, okay? You see it's still gonna get confused. We have to do let's see So the thing here is that it's ambiguous. It's ambiguous. Okay, so you got to use one or the other, right? So let's say we want to use it for one. So let's copy this right here and Replace it up here and we can use this one, right? But now we're still having this issue between the ambiguous or not. So we have to get rid of this one right here Like that, okay So in this case we can also get rid of this right here now because we have Imported it as a static reference To the main class like this, okay? I'm gonna get rid of this one right here. Okay, so Just for review You can only have if you have two static namespace references like this with the same method names and the same class name like this You have to do one or the other or else it's becoming ambiguous, right? So I chose to stick with Group two and I decided to not do it for group one and it looks just fine. So if we run it We should see I Am group for I am from group two and then I am from group one Anyways, if this video was helpful make sure you smash the like button subscribe to my channel for your new and turn on those notifications Comment your feedback suggestions questions all that good stuff below check out my patreon in the description link in description and Check out my other videos in the top right corner I have started the anti-mire dimension series So if you haven't checked that out make sure you do because I think it's gonna be a really fun one Anyways, I'll catch you guys the next video. Thank you for watching. Peace