Programming in Dart: Classes

In this final course in the Programming with Dart series, you’ll be introduced to one of the most important aspects of the language: classes. You’ll learn how to define your own classes and how to use the object oriented features in the Dart programming language. By Brian Moakley.

4.5 (2) · 1 Review

Download materials
Save for later

Learning path

This is part of the Flutter Fundamentals learning path. View path.

Who is this for?

This course is written for people who are new programming! If you don’t know the difference between a function and an object, you’ve come to the right place.

Before starting, you should have watched Programming in Dart: Fundamentals, Programming in Dart: Control Flow & Collections and Programming in Dart: Functions & Closures. This course will build on those foundational concepts and expand on your understanding of the Dart programming language.

Covered concepts

  • Classes
  • Constructors
  • Initilization lists
  • Multiple constructors
  • Static members
  • Enumerations
  • Inheritance & overriding
  • Abstract classes
  • Interfaces
  • Mixins
  • Generic classes

Part 1: Understand Classes

Toggle description

Get an overview of Dart’s object orientated features by the way of classes.

Toggle description

Learn the basics of classes and how to define them using the Dart programming language.

Toggle description

Now that you know how to define a class, you’ll put your knowledge to the test by developing character states.

Toggle description

Learn about constructors and how to define constructors in classes. Then, you’ll call them to create objects.

Toggle description

Once you have a good idea on how to create a constructor, you’ll put your knowledge to the test by creating a very specific constructor.

Toggle description

Understand the basics of initialization lists and how to use them to build your objects.

Toggle description

Learn how to define multiple constructors in your classes using something known as named constructors.

Toggle description

Understand how static members work on your Dart objects by defining class based constants.

Toggle description

Learn how to group your constants together in one construct known as an enumeration and how to use it in your code.

Conclusion 1:31
Toggle description

With this part complete, you’ll get a review of all the various aspects of Dart object oriented programming.

Part 2: Learn Inheritance

Toggle description

Now that you have a good idea about how to use classes, you’ll learn some of Dart’s class features to level up your skills.

Toggle description

Learn about the concept of class inheritance then see how it works using Dart.

Toggle description

See how to to provide different implementations of methods in child classes.

Toggle description

Put your method overriding skills to the test in this episode’s challenge.

Toggle description

Learn the concept of an abstract class and learn why abstract classes are useful in your program.

Toggle description

Understand the concept of Dart interfaces and how you can use them to define behavior in your subclasses.

Toggle description

Level up your generic programming skills by learning how to apply generic concepts to classes.

Add Mixins 1:43
Toggle description

Add new behavior to your classes by this useful language feature called Mixins.

Toggle description

Get an overview of all the various language features available to you in Dart programming language that weren’t covered in this course.

Conclusion 3:19
Toggle description

In this final episode, you’ll review everything that was covered and learn where to go next.

Up next

Flutter & Dart
Your Second Flutter App
Continue along your Flutter and Dart journey by building your second complete app in Flutter, learning abo... more



Brian Moakley


Adriana Kutenko


Nicolai Martelle Manaloto

Video Editor

Over 300 content creators. Join our team.