summer_course_2024/city_model_structure/subway_entrance.py
2020-06-30 18:06:27 -04:00

22 lines
436 B
Python

from city_model_structure.city_object import CityObject
class SubwayEntrance(CityObject):
def __init__(self, name, latitude, longitude):
super().__init__(0, [], name)
self._name = name
self._latitude = latitude
self._longitude = longitude
@property
def latitude(self):
return self._latitude
@property
def longitude(self):
return self._longitude
@property
def name(self):
return self._name