Saturday, July 29, 2023
multilevel inheritance in python in hindi | python full course in hindi ...
multilevel inheritance in python in hindi is a video tutorial that is part of python full course in hindi made for #pythonforbeginners to learn #oop programming created by #bintuharwani. You will learn the concept of #multilevelinheritance and #inheritance in this #pythonprogramming tutorial of #python3 to understand #pythontutorial step by step in hindi. Multilevel inheritance happens when class A is inherited by class B which in turn in inherited by class C. As a result of which the object of class C can access the methods and attributes of class C as well as of classes A & B too.
Through real life examples and complete Python programs the concept of multilevel inheritance is taught in this tutorial. In first example, "student" class is inherited by "science" class which in turn is inherited by "result" class; by taking advantage of multilevel inheritance the object of "result" class will access the methods and attributes of "student" and "science" class to display mark sheet.
In the second Python program, "employee" class is inherited by "executive" class which in turn is inherited by "officer" class. Using multilevel inheritance, the salary is computed that includes CCA, HRA, Medical allowance and Conveyance allowance
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment