Struct vs. Class in Swift 5 (Xcode 11, 2020) - iOS Development

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 18

  • @georgetait864
    @georgetait864 2 года назад +10

    Another key point is inheritance. Structs cannot inherit but classes can

  • @aliufemi
    @aliufemi 4 года назад +2

    Thanks a lot for this! Can you please do a follow up on how to build data models with both structs and classes? Would really appreciate that. It something I really need to understand. Sure other folks would appreciate.

  • @karencamilla5361
    @karencamilla5361 2 года назад +1

    Nice video!! I'm from Brazil and I understand perfectly, although my english be awful. Thankss very much!

  • @jomy10-games
    @jomy10-games 2 года назад +1

    Very interesting video!

  • @rev_kous9275
    @rev_kous9275 4 года назад +3

    It will be interesting for a video about the computed and observed properties.

  • @Ebadd9
    @Ebadd9 2 года назад

    Is it correct to say that classes uses less ram? and that you need to init to create a pointer in memory?

  • @fullbeteiro
    @fullbeteiro 4 года назад +1

    Thanks for the video. But you forgot to mention about inheritance difference.

    • @iOSAcademy
      @iOSAcademy  4 года назад

      Youre welcome! Yes, I def forgot about that

  • @joetallo8022
    @joetallo8022 4 года назад

    Video Idea: An input screen that asks questions. And an output screen that shows where the answers get placed into the spot we specify.
    For example: Let’s say I have a paper form of questions. I scan that form and integrate the form into the app so that our answers show up on the form.
    Let’s say the census consists of the following three questions:
    1. Name
    2. Age
    3. Gender
    The output screen puts the answers to these questions on the form we added to the app.
    I know my example is bad, because it would be much simpler to just scan the questionnaire and make it an editable PDF. Since we’re learning coding, knowing this technique can help people in various situations.
    I am really hoping to learn this. Please help!

  • @RajrkSunny
    @RajrkSunny 2 года назад

    why can't a struct and a class have same name in the file?

  • @aaronlee9303
    @aaronlee9303 4 года назад

    hi!
    Bye!

    • @iOSAcademy
      @iOSAcademy  4 года назад +2

      haha hi!

    • @aaronlee9303
      @aaronlee9303 4 года назад

      iOS Academy your videos really helps me every time. Thank you so much!