Hello, in this video, I am going to show you how to initiate your parent constructor. So at the moment I've got this, you know, car class got this BMW class that inherits using the extends keyword from the car class and then create an object of it. For every load that it says this car. This is the starting. And he calls this constructor because there's no constructor in here. If I put a constructor in here, however.
So and I'll just say, child constructor. Watch what happens is the child constructor. So if the child that you created an object or has a constructor that he won't invoke the parent constructor, but there may come a time where you want to invoke that as well but also do some specific functionality within the Classes constructor this child. And to do that, go to your core, the pair One, two, you put the class name coloca. Then you just put, you know the class name a yen, and run it. Oh, okay, you'll be almost on the school.
There we go. So this is the call started. And then yeah, you've got the constructor name like. So you can do that with the constructor inside of it, if it is inheriting if this constructor had wasn't, you know, expecting variables from solar, you know, parameters to be passed in. You could pass them in like so. So it's a great way of having some specific functionality code that's run initially on a child class, but you also can invoke the parents constructor as well, and yet really cool stuff.
So that's it. If you have any questions, feel free to pop me a message. And as usual, I look forward to seeing you in the next video.