Professional Documents
Culture Documents
Practical No.15
Practical No.15
class Employee:
self.name = name
self.department = department
self.salary = salary
def put_emp(self):
employee = Employee()
employee.put_emp()
#(2)
class student:
self.rollno = r
self.name = n
def putdata(self):
print("Rollno=", self.rollno)
print("Name=", self.name)
class result(student):
self.per = p
def putm(self):
print("Percentage=", self.per)
s = result()
s.getdata(10, "John")
s.putdata()
s.getm(96)
s.putm()
# (3)
class Father:
def Business(self):
class Mother:
def cooking(self):
def playing(self):
c = Child()
c.Business()
c.cooking()
c.playing()