Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Emp:
- def __init__(s, sal, name, eid):
- s.sal = sal
- s.name = name
- s.eid = eid
- def aaa(s):
- print("Name ",s.name)
- print("Sal ",s.sal)
- print("Eid ",s.eid)
- class Prog(Emp):
- def __init__(s, cod, time ,sal, name, eid):
- Emp.__init__(s, sal, name, eid)
- s.cod = cod
- s.time = time
- def printDetail2(s):
- Emp.aaa(s)
- print("Cod ",s.cod)
- print("Time ",s.time)
- class Tester(Prog):
- def __init__(s, tester, ttest, cod, time ,sal, name, eid):
- Prog.__init__(s, cod, time, sal, name, eid)
- s.tester = tester
- s.ttest = ttest
- def printDetail2(s):
- Emp.aaa(s)
- print("tester ",s.tester)
- print("TTest ",s.ttest)
- a = Tester("no", 89, "true", 67, 12,"aSas", 4)
- a.printDetail2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement