Introduction To Python OOPS
Introduction To Python OOPS
class Child(Parent):
def func2(self):
class Father:
def father(self):
class Father(Grandfather):
def __init__(self, fathername, grandfathername):
class Son(Father):
def __init__(self,sonname, fathername,
grandfathername):
Hierarchical Inheritance: When more than one derived
classes are created from a single base .
continue…..
Ex:
class Parent:
def func1(self):
class Child1(Parent):
def func2(self):
class Child2(Parent):
def func3(self):
class Student1(School):
def func2(self):
class Student2(School):
def func3(self):