in this blog post we will learn how to use inheritance, so you will be asking what is inheritance, basically, inheritance from the word itself is already explanatory, but to make it clear... Inheritance use to extends classes... and whatever the classes have will also be applied to the subclasses... the example below will give a short overview of inheritance, the "class teacher" is a parent class
and the "subclass" will be the "Physic Teacher". whatever the method has the parent class will also be inherited by the child class. I may not discuss it elaborately, within this post, but below is the best example of a string type inheritance that comes up a print-line statement method, altogether with buffered reader approach.
what it can do... to your program, so in this article I will give you a short demo code so you can
make a review, and experiment the codes... you can test the codes below from your java IDE.
its a string type, just for now, I will update it soon.
and the "subclass" will be the "Physic Teacher". whatever the method has the parent class will also be inherited by the child class. I may not discuss it elaborately, within this post, but below is the best example of a string type inheritance that comes up a print-line statement method, altogether with buffered reader approach.
what it can do... to your program, so in this article I will give you a short demo code so you can
make a review, and experiment the codes... you can test the codes below from your java IDE.
its a string type, just for now, I will update it soon.
0 Comments