In this we are going to see a basic program on employee class with multilevel inheritance in Python Programming Language.
class Employees():
def Emp_name(self):
print("Employee Name: ABC")
class Emp_salary(Employees):
def salary(self):
print("Salary: 1000000")
class Emp_designation(Emp_salary):
def desig(self):
print("Designation: SDE")
call = Emp_designation()
call.Emp_name()
call.salary()
call.desig()
# Coded By Dhiraj Shelke
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP