 Hey everybody, this is Brian, and welcome to the 40th Lamp Tutorial. Today we're going to be discussing the final keyword. Now let's say we have a class, and we've done some things to this class, and we really don't want anybody to mess with it. I mean, this class is so special to us that we just don't want anyone to inherit it or do anything. Well, that's what the final keyword comes into play. Whoopsie, that didn't work out too well. So we have our normal class, and we can actually extend this. We'll say class newTest. So someone could go in here and actually override, or overload, I should say, our doTest function and totally destroy the magic. See here. So in our original class, we've done something, and it's just doing something special, whatever this may be, and we don't want classes to inherit this and then change the functionality of it. So what we can simply do, save that and see that it runs, is we can just say final. Once you mark it as final, classes cannot, they cannot extend it. You see how we got this little syntax error down here. class newTest may not inherit from final class test on line 25. Pretty simple yet pretty powerful technique. So if you write a class and you just absolutely do not want anybody to inherit it for whatever your reasons are, then go ahead and put the final keyword in there. You should know that that actually does kind of go against the bit of the spirit of object oriented programming, because what you're saying is this is the final version of this class and no one can ever extend this or do anything to it. So that's all for this tutorial. I know it was a fast one, but very powerful keyword. Thank you. Bye. Bye. Bye. Bye. Bye. Bye