Swift For Beginners - Class & Inheritance Explained

Поделиться
HTML-код
  • Опубликовано: 19 июл 2024
  • Check out more information on Devmountain:
    bit.ly/35Tzs9K
    In this video I explain what a class is and how inheritance works in Swift. This video is for those just getting started with the Swift Language. I walk through an example where we create a "Developer" class and eventually a subclass called "iOS Developer". We also discuss the initialization of these classes. This tutorial was done using Swift 5.2 and Xcode 11.4.
    Unwrapping Optionals:
    • Swift Optionals Tutori...
    If you like my teaching style, I've released my first iOS dev course which is all about the take-home project job interview for iOS developers.
    Course Info - seanallen.teachable.com/
    Link to my book - How I Became an iOS Developer:
    gumroad.com/l/sean-allen-origin
    Hired.com:
    hired.com/x/1n01g
    Check out my podcast, iOS Dev Discussions:
    itunes.apple.com/us/podcast/i...
    Book and learning recommendations that help out the channel if you decide to purchase (Affiliate Links):
    Ray Wenderlich Books:
    store.raywenderlich.com/a/208...
    Ray Wenderlich Videos:
    store.raywenderlich.com/a/208...
    Mark Moeykens SwiftUI Views & Animations Mastery:
    www.bigmountainstudio.com/a/f...
    Donny Wals - Combine Framework:
    gumroad.com/a/909014131
    Paul Hudson's Hacking With Swift:
    gumroad.com/a/762098803
    Learn Advanced Swift Here:
    gumroad.com/a/656585843
    Links to my iOS Dev Setup & iOS Dev Book Recommendations
    www.amazon.com/shop/seanallen
    Personal Links:
    Twitter:
    / seanallen_dev
    Instagram:
    @seanallen_dev
    #swift #softwaredeveloper #iosdeveloper
  • НаукаНаука

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

  • @tabitaalbert
    @tabitaalbert 6 месяцев назад +1

    Simple, straightforward video 👍🏼 Thanks

    • @seanallen
      @seanallen  6 месяцев назад

      No problem 👍

  • @stevenalvarado8047
    @stevenalvarado8047 Год назад

    Amazing job using the button as a real work example sean! really cleared things up for me .

  • @marislakss201
    @marislakss201 Год назад +1

    Hi Sean, as a beginner in iOS development, watching these explanatory videos for better understanding are awesome and easy to understand. Many thanks and massive thumbs up!

    • @seanallen
      @seanallen  Год назад +1

      Glad you enjoy them, Maris!

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

    Thank you so much Sean. From your videos, the most important thing I learned was, a good teacher matters! Like really matters. You really know what you are teaching and I can feel you put yourself into your audience shoes.

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

    Finally found the video on this channel which is easy to understand for a beginner like me.. Thanks for this

  • @danielmagantopizarro2262
    @danielmagantopizarro2262 3 года назад

    brilliantly put Sean, I will definitely stick with your tutorials and possibly come back to you for further mentoring. Thumbs up!!!

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

    Thank you so much Sean!! This is truly helpful for me.

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

    The inheritance and initialisation is helpful importance for me. Thank you for this tutorial.

  • @roushilsingla6325
    @roushilsingla6325 4 года назад +5

    Thanks !!
    It would be great if u make a video on Protocol Oriented Programming. As u teach really good it would be better to understand the use in real life applications. I hope you make it as soon as possible. ⭐️

    • @seanallen
      @seanallen  4 года назад +5

      To be honest, I've never used Protocol Oriented Programming in a real project, so I don't feel I'd be the best to teach it.

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

      @@seanallen No Worries!! You are doing great although. Waiting for more of your videos

  • @prachibile2798
    @prachibile2798 3 года назад

    Hey Sean.. I always watch your iOS related videos. Your way of explaining is just awesome. Now I am looking for unit testing using Quick and Nimble. I am new to iOS and I have to work on unit testing but am quite confused about how to test views and view models... If you can make a video on it then it will be a really great help. Thanks in advance :)

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

    Thanks, Sean. Especially for the inheritance portion. That gets forgotten sometimes.

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

      Thanks Glenn. It's funny you say that because my initial draft of the video didn't cover it. I decided to add it in right before I recorded.

    • @KailashAnand06
      @KailashAnand06 3 года назад

      @@seanallen lol

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

    keep up the good work man!

  • @felipemarques8373
    @felipemarques8373 Год назад

    MAD teaching skills

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

    Nice job Sean. Thanks!

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

    super cool!

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

    Ty Sean

  • @navid10031
    @navid10031 3 года назад

    Hi Sean, Thanks for your helpful videos. I'm a little bit confused with subclass and its initializer! Why don't we add any initializer in a subClass? I mean we have a property called favoriteFramework that has no initializer...

  • @makkah_life_
    @makkah_life_ 3 года назад +1

    Thank you very much from Saudi Arabia

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

    H! first of all Thanks for this effective content on iOS developing.
    One content request from my side, I have been trying to get closures as communication pattern. But could not relate much with your videos on communication patterns.
    Read some docs saying using closures over delegate is preferable.
    Please make time to prepare a video on 'using closures as communication pattern' and closures vs delegates.
    Thank you..

  • @user-rr8tk9qg5p
    @user-rr8tk9qg5p 2 года назад

    Thanks

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

    Great Job! I hope to see also about struct in the future! Thank you so much 😊

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

    U r a Legend :D

  • @prachibile2798
    @prachibile2798 3 года назад

    Also I would like to know about init(coder) and init(frame)..

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

    Hey sean, i have a question..... do you need to full stack js to become in iOS developer? Does it help? Or is it just a waste of time.... will i be expected to know js on the job or is it just swift and objective C for ios developer jobs.... im going to do a udemy bootcamp for iOS and wanted to know if you think its a good idea to learn js as well (specifically the MERN stack)?

  • @eman31683
    @eman31683 Год назад

    I know this was made 2 years ago but what's the difference between init and .init?

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

    I know this is a basic example to show the concept, but in this scenario would there be an issue with setting the initial value of favoriteFramework to "I do not have a favorite framework" so that you wouldn't have to worry about it being an optional?

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

    Quick suggestion:
    At 8:49, I found a part of your video where you made the common teaching mistake of not explaining something that’s obvious to an experienced programmer but might not be obvious to a beginner. You said you thought you were going to get autocomplete when passing in the string for jobTitle, but failed to explain why you didn’t get autocomplete. A beginner might not understand that a string is a value supplied by the programmer and is not part of an imported framework, and therefore Xcode can’t predict what you’re typing when supplying a string. I know it seems so simple that it doesn’t need explaining but I just thought back to my beginner days as a programmer and realized that’s something that wouldn’t have made sense to me back then.

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

      Good feedback. I try to do my best to always at least give a quick explanation on stuff like that, but it's tough to catch 100% of those.

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

    How do you unwrap optional?

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

    Second

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

    the

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

    First 😄

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

    You know too much to just have 5 years Experience.

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

      To be fair, for 3 of those 5 years I was creating content so it was part of my job to study the language and platform.

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

    kya kar raha hai re sean