Python, Programming, Data Science, Artificial Intelligence, Data.
by github.com/tushar2704 class Car: def __init__(self, brand, model, year): self.brand = brand # Public attribute self._model = model # Protected attribute self.__year = year # Private attribute def get_year(self): return self.__year my_car = Car("Toyota", "Camry", 2022) print(my_car.brand) #