In this video, we will learn about different kind of properties used in swift language. Properties are the values associated with class, structure and enum. We have 3 kind of properties in swift language
1) Stored property : Values are stored as a constant or variable.
2) Computed property: Values in this kind of property are provided as a calculation of other properties and it has getter and optional setter.
3) Type property: This kind of property is used with keyword Static and thus can be accessed with the help of type of class and not with the help of instance of class.(Will get more clearer in example shown)
We will look at each property kind with example.
Смотрите видео Swift Tutorials: Properties in swift, kind of properties stored computed and type properties онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал Swift Tutorials 28 Февраль 2020. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 492 раз и оно понравилось 6 посетителям.