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 - Наука
Simple, straightforward video 👍🏼 Thanks
No problem 👍
Amazing job using the button as a real work example sean! really cleared things up for me .
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!
Glad you enjoy them, Maris!
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.
Finally found the video on this channel which is easy to understand for a beginner like me.. Thanks for this
brilliantly put Sean, I will definitely stick with your tutorials and possibly come back to you for further mentoring. Thumbs up!!!
Thank you so much Sean!! This is truly helpful for me.
The inheritance and initialisation is helpful importance for me. Thank you for this tutorial.
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. ⭐️
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.
@@seanallen No Worries!! You are doing great although. Waiting for more of your videos
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 :)
Thanks, Sean. Especially for the inheritance portion. That gets forgotten sometimes.
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.
@@seanallen lol
keep up the good work man!
MAD teaching skills
Nice job Sean. Thanks!
Glad you liked it!
super cool!
Ty Sean
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...
Thank you very much from Saudi Arabia
Happy to help.
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..
Thanks
Great Job! I hope to see also about struct in the future! Thank you so much 😊
Coming soon...
U r a Legend :D
Also I would like to know about init(coder) and init(frame)..
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)?
I know this was made 2 years ago but what's the difference between init and .init?
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?
Yes you can set a default value
Yup, that can work
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.
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.
How do you unwrap optional?
Nil coalescing operator is one way.
Second
the
First 😄
You know too much to just have 5 years Experience.
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.
kya kar raha hai re sean