Learn Swift: Structs and Classes


Why Learn Swift: Structs and Classes?

Continue your Swift learning journey! Represent real-world objects using structs and classes. Swift offers these data types (and more) to give you fine control over the behavior of these real-world representations.

Take-Away Skills

By the end of this course, you will be able to:

  • Use the structs type to create instances of everyday objects.
  • Differentiate between structs and classes
  • Create classes that represent everyday objects.

Notes on Prerequisites

We recommend that you complete Learn Swift: Functions before completing this course.

Codecademy courses have been taken by employees at

Google LogoFacebook LogoNASA LogoIBM LogoDropbox Logo
  1. 1
    Model everyday objects using structures!
  2. 2
    Model everyday objects using classes!

What you'll create

Portfolio projects that showcase your new skills

Pro Logo

How you'll master it

Stress-test your knowledge with quizzes that help commit syntax to memory

Pro Logo

— Madelyn, Pinterest

I know from first-hand experience that you can go in knowing zero, nothing, and just get a grasp on everything as you go and start building right away.

Course Description

Continue your Swift journey by learning how to represent real-world objects using structs and classes!


Earn a certificate of completion
3 hours to complete in total

Model everyday objects using structures!

1 lesson, 1 quiz, 1 project, 1 informational