class Shape: def _init_(self): self.area=0 self.name=" " def showArea(self): print("The area of the", self.name,"is", self.area,"units") class Circle(Shape): def __init__(self, radius): self.area=0 self.name="circle" self.radius=radius def calarea(self): self.area=math.pi*self.radius*self.radius class Rectangle(Shape): def __init__(self, length, breadth): self.area=0 self.name="Rectangle" self.length=length self.breadth=breadth def calarea(self): self.area=self.length*self.breadth class Triangle(Shape): def __init__(self, base,height): self.area=0 self.name="Triangle" self.base=base self.height=height def calarea(self): self.area=self.base*self.height/2 c1=Circle(5) c1.calarea() c1.showArea() r1=Rectangle(4, 5) r1.calarea() r1.showArea() t1=Triangle(3,4) t1.calarea() t1.showArea() class Employee: def __init__(self): self.name=" " self.empid=" " self.dept=" " self.salary= 0 def getEmpDetails(self): self.name=input("Enter Employee name: ") self.empid=input("Enter Employee ID:") self.dept=input("Enter Employee Dept: ") self.salary=int(input( "Enter Employee Salary:")) def showEmpDetails(self): print("Employee Detils") print("Name : ", self.name) print("ID :", self.empid) print("Dept:", self.dept) print("Salary: ", self.salary) def updtsalary(self): self.salary=int(input("Enter new Salary")) print("updated Salary", self.salary) e1=Employee() e1.getEmpDetails() e1.showEmpDetails() e1.updtsalary()