300+ free video programming tutorials ― Learn for free!
Category: Java - Author: Karl Hadwen
Did you find this video helpful? If so, why not subscribe!? ? http://bit.ly/CognitiveSurge
The best shared web hosting: https://www.bluehost.com/track/karlhadwen/
The best simple cloud hosting for developers: https://m.do.co/c/426ceabcea09
In this video I'm going to be showing you how inheritance works. Inheritance quoted from the Oracle docs: Definitions: A class that is derived from another class is called a subclass (also a derived class, extended class, or child class). The class from which the subclass is derived is called a superclass (also a base class or a parent class).
Excepting Object, which has no superclass, every class has one and only one direct superclass (single inheritance). In the absence of any other explicit superclass, every class is implicitly a subclass of Object.
Classes can be derived from classes that are derived from classes that are derived from classes, and so on, and ultimately derived from the topmost class, Object. Such a class is said to be descended from all the classes in the inheritance chain stretching back to Object.
Like the Cognitive Surge Facebook page
Follow me on Twitter (Feel free to tweet me questions!)