
class InputMaster: def in_sum(self): a = int(input("Please write a")) b = int(input("Please write b")) print (a,b) class InputWorker(): def sum(self,a,b): c = a + b print(c) obj1 = InputMaster() obj2 = InputWorker()

class InputMaster: def in_sum(self): a = int(input("Please write a")) b = int(input("Please write b")) print (a,b) class InputWorker(): def sum(self,a,b): c = a + b print(c) obj1 = InputMaster() obj2 = InputWorker()
class InputMaster: def in_sum(self): self.a = int(input("Please write a")) self.b = int(input("Please write b")) print(self.a, self.b) class InputWorker(): def sum(self,a,b): c = a + b print(c) obj1 = InputMaster() obj1.in_sum() obj2 = InputWorker() obj2.sum(obj1.a, obj1.b)