MASTERING SWIFT - Class vs Structure

Поділитися
Вставка
  • Опубліковано 7 лют 2025
  • Hi there ...
    This is the thirteenth chapter of Mastering Swift Tutorial series.
    In this chapter we are gonna learn classes and structures and the differences between them. Class and structure are similar. But there are some important differences. We will also talk about that. Apple describes class and structure as :
    "Classes and structures are general-purpose, flexible constructs that become the building blocks of your program's code. You define properties and methods to add functionality to your classes and structures by using the already familiar syntax of constants, variables, and functions."
    Class or structure allows us reusability. We can create it once and use it in our code multiple times.
    00:14 What is class and structure ?
    02:20 differences between reference type and value type ?
    03:47 class definition
    03:57 structure definition
    04:43 creating initializer
    05:53 creating multiple initializer
    06:48 class and structure properties
    07:56 stored properties
    10:48 computed properties
    13:36 property observers
    16:08 methods
    You are gonna see lot of things about programming in a simplified tutorials.
    What do you waiting for to be a member of this ship.
    You can support this ship by subscribing : - / @programmership
    #swift
    #class
    #structure

КОМЕНТАРІ •