Published on February 24, 2017 by CodeWithChris
Want create site? Find Free WordPress Themes and plugins.

This Learn Swift series is designed for beginners with NO programming experience. It uses the latest version of Swift 3 and Xcode 8.

In this lesson we talk about class inheritance.

If you’ve ever wanted to learn Swift programming and build your own apps, this is it! Hands on training with PDF lesson notes and cheat sheet… Follow along! It’s the best way to learn!

I’ll be in the comments to help you along as you learn about Swift concepts such as variables, data types, if statements, loops, classes and more!

Lesson Notes:
Coming soon

Swift Programming Cheat Sheet:
Coming soon

Swift Language Guide:
developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/Inheritance.html#//apple_ref/doc/uid/TP40014097-CH17-ID193

Swift Open Source:
www.swift.org

PC Users:

This free Swift tutorial series is best paired with my How To Make An App with No Programming Experience series which can be found here:

For more tutorials on how to build iPhone apps, make sure you subscribe and visit my site where you’ll find a community of like minded learners! Learning something new is always more fun with other people!

My Website: codewithchris.com
My Courses: codewithchris.com/learn-how-to-build-iphone-apps-with-a-proven-framework/

CodeWithChris is dedicated to teaching beginners and non-programmers all about building iOS apps. On the site, you’ll find a ton of free resources and tutorials to aid you on your journey to learn iOS development. Many people have successfully picked up Swift 3, Xcode 8 and app building from my course and materials!

Intro & Outro music
“Heartbreaker” by Jahzzar (www.betterwithmusic.com/)

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

28 Comments on "Learn Swift for Beginners – Ep 10 – Classes Part 2 – Inheritance"

Notify of
avatar

Sean Whelan
Guest
Sean Whelan
5 days 1 hour ago

Hi Chris! Great video. I have one question. Can you override the variable topSpeed as well as the function? Thanks

CodeWithChris
Guest
CodeWithChris
2 days 4 hours ago

Hey Sean, you definitely override the function, however for the topspeed property, you wouldn't need to override it. Simply use it in your subclass.

There's something called a "computed property" where you can specify some code on what happens when the property is set and also when the property is accessed. In this case, it makes some sense that you may want to override the behavior and provide your custom code in a subclass. Tldr: if topspeed was a "computed property" then you could override it.

Shai Long
Guest
Shai Long
30 days 21 hours ago

can anyone explain how this would become an app?

CodeWithChris
Guest
CodeWithChris
28 days 19 hours ago

Hey Shai, this series is more geared towards learning programming with Swift. If you want a more overall look at how the app is built, please check out this video:

That series shows the holistic approach which includes building UI and learning Swift code and both of them work together to form an app.

Carlos Rivera
Guest
Carlos Rivera
3 months 7 days ago

thanks for the videos keep them coming

Fellaini's Afro
Guest
Fellaini's Afro
4 months 23 days ago

this dude is a god

fadzly mohammad
Guest
fadzly mohammad
5 months 12 days ago

thanks mate

Dwight Collins
Guest
Dwight Collins
6 months 2 days ago

Chris, I added super.topSpeed += 50 and got the result of "Driving at 250" in the results window. Your tutorials are great – already got me thinking ahead because I am now understanding how this works. Great Job!class FutureCar : Car { override func drive() { super.topSpeed += 50 print("Driving at (topSpeed)") } func fly() { print("Flying") }}

Charles Machia
Guest
Charles Machia
6 months 9 days ago

Hi Chris. I think your swift lessons, especially the material on classes and inheritance, would be an essential addition to Module 3 of How to make an App with No programming experience. I gave up on module 3 because I found dot notation to be very confusing. The swift lessons helped greatly! Also, for module 3 I suggest considering doing less code for things that can be done with Interface Builder. I think the graphical approach will be far less tedious for new learners and they can always learn the longer coding method later.

CodeWithChris
Guest
CodeWithChris
5 months 4 days ago

+Charles Machia hey Charles, I really value this feedback. Thank you! I'll try to incorporate this when I redo the course for Xcode 9

MuraliKrishna Velineni
Guest
MuraliKrishna Velineni
7 months 9 days ago

Are there class access specifiers in Swift ?

Kapil Soni
Guest
Kapil Soni
7 months 30 days ago

great video

CodeWithChris
Guest
CodeWithChris
7 months 19 days ago

Thanks for your constant support 🙂

Ambrose Ezenweani
Guest
Ambrose Ezenweani
8 months 3 days ago

Hi Chris, thanks for this tutorial. be blessed. hope your family members are now fine? I am enjoying every bit of this course

CodeWithChris
Guest
CodeWithChris
7 months 19 days ago

We have gotten better. Thank you for asking!

wpDiscuz