Python, Oop, Programming, Technology, Software Development.
year): self.make = make # public attribute self._model = model # protected attribute self.__year = year # private attribute def get_year(self): return self.__year my_car = Car("Toyota", "Corolla", 2020) print(my_car.make) # Accessing public attribute print(my_car._model) # Accessing protected