class ProductManager: """Coordonatorul aplicatiei""" def __init__(self): self.__validator = ProductValidator() self.__repo = ProductRepository(self.__validator) self.__contr = ProductController(self.__repo) self.__prodUi = ProductListUi(self.__contr) def main(self): self.__prodUi.run()
def __init__(self): self.__validator = ProductValidator() self.__repo = ProductRepository(self.__validator) self.__contr = ProductController(self.__repo) self.__prodUi = ProductListUi(self.__contr)