Learn Swift for Beginners – Ep 9 – Classes Part 1

[ad_1]
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 classes!

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!

Swift Programming Syntax Cheat Sheet:

Swift Language Guide:

Swift Open Source:

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:
My Courses:

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 (


Posted

in

by

Tags:

Comments

30 responses to “Learn Swift for Beginners – Ep 9 – Classes Part 1”

  1. Blank Media Avatar

    Hey Chris, what keyboard hot keys are you using to select text like you did in this video? I'm talking about when you are highlighting whole words or are highlighting a word from the beginning to the end without the use of your mouse.

  2. carlos fernandez Avatar

    I love the way you explain , please keep doing it . Thanks

  3. James Wadkins Avatar

    Finally Classes make sense! This will improve my programming in huge ways. Thank you Chris.

  4. Vusal Tagizade Avatar

    thanks man you videos awesome

  5. Tanbir Rahman Avatar

    How do you select and copy text without using the mouse?

  6. Jordon Jackson Avatar

    It probably doesn't make much of a difference but instead of it saying "BlogPost" on the sidebar, it says "__lldb_expr_354.BlogPost". I still receive the values 1 and 0, just an odd difference.

  7. Diego Avatar

    You got yourself another subscriber. Awesome vids!

  8. Szymon O Avatar

    Hey, not sure why, but when I start typing line 12 << let myPost = BlogPost() >>

    on the right side I see (instead of BlogPost) << __lldb_expr_125.BlogPost >>
    and then lines 13 – 15 look the same. but when in line 17 I will do print(myPost.author) on the right side I see "My Namen" correctly.

    I triple and quadruple checked every single line and I got them exactly like you. Or maybe I don't know.. maybe I miss something

  9. Thomas Ignarri Avatar

    Sometimes I randomly think of John Travolta too…

  10. Seebasti McBurger Avatar

    Man, nice work. Haven't had such a good explainer yet.

  11. Jason Swift Avatar

    Best explainer by far! Still going to have to watch this once or twice more to fully get my head around it though. Good job, keep it up!

  12. Samuel Farmer Avatar

    Hands down the best explanation of Classes ever! I had this idea that I'd never understand what a Class was because they just seemed so strange. Now I do! Great video.

  13. Marko Stankovic Avatar

    What type of variable defines let ?

  14. Alex Leeor Avatar

    good job my friend.. VERY nice explanations paced well!

  15. Wuttasi Avatar

    I agree with @andy, please dont stop doing these videos, they are the best ones i can find on youtube!!! your explaining level is excelent ! thank you very very much

  16. James Patching Avatar

    Chris, I'm sure with the views that you are currently generating that you're not making much money from these videos…. yet. But PLEASE continue this series, you have the best tutorial series by far. The fans and views will come I'm sure, and we as fans will do everything we can to promote. Fantastic job man!!

  17. Aydos Kurmashev Avatar

    You are doing well! Continue this Chris!)

  18. kerem kayhan Avatar

    this is brilliant for beginners. keep up the good work..

  19. Nima R Avatar

    Your videos are the best. Keep on please.

  20. Anthony Warner Avatar

    This is the best coding video… I feel like I'm watching early-era Sal Khan doing his Khan Academy vids. Many thumbs up!

  21. Richard McQueen Avatar

    This course is awesome. Chris, please go with the next one. I want to know if swift has something as getter and setter like java has☺

  22. Philipp Axmann Avatar

    Please make more of those, you are explaining so great. Please tell me this was not the last one!

  23. Brendan Wang Avatar

    You are great, man, this is very helpful

  24. Andy Yermakov Avatar

    I hope you won't throw the project. You're probably the best explainer at this programming language.

  25. Philipp Axmann Avatar

    Hey Chris,
    I was just playing around in Swift with Classes, and tried the following code:
    var kills: Double!
    var deaths: Double!
    var victorys: Double!
    var deafeats: Double!

    func killsPerDeath() {
    kills/deaths
    }

    func victoryPercentage() {
    victorys / (victorys + deafeats)
    }

    }

    var philipp = PlayerStats()
    philipp.kills = 3974
    philipp.deaths = 3460
    philipp.victorys = 158
    philipp.deafeats = 155

    I got the following error meassages:
    /swift-execution/Sources/main.swift:10:7: warning: result of operator '/' is unused
    kills/deaths
    ~~~~~^~~~~~~
    /swift-execution/Sources/main.swift:14:11: warning: result of operator '/' is unused
    victorys / (victorys + deafeats)

    Could you maybe help me with why that error shows up?

  26. Robin Burke Avatar

    Thanks! Clear and easy to understand. Please continue!

  27. billal softa Avatar

    very good please continue

  28. CodeWithChris Avatar

    In this lesson, you'll be introduced to classes!

Leave a Reply

Your email address will not be published. Required fields are marked *