Inheritance is a way to reuse the code of existing objects. In this video tutorial we're illustrating single inheritance mechanism.…