Scala 2 Classes and Objects
You can advance your understanding of Scala once you learn to apply multiple concepts together. This course will teach you how to work with classes, inheritance, traits, case classes, and packaging your code among other topics.
What you'll learn
Once you start working with Scala, you can find yourself in a situation where you need to create projects, and a project needs to apply multiple language features. In this course, Scala Classes and Objects, you’ll learn to apply multiple Scala features together while developing a working bank. First, you’ll explore classes which are fundamental to object-oriented programming. Next, you'll discover traits that allow you to abstract behavior while creating rich interfaces and stackable modifications. Finally, you’ll learn how to use case classes, along with packaging your code for better code visibility and overall organization. When you’re finished with this course, you’ll have the skills and knowledge of Scala classes and objects needed to create a new project or extend an existing one.
Table of contents
- Version Check 0m
- Agenda 1m
- Setting up IntelliJ Project 2m
- Creating an Account Class 3m
- Creating an Auxiliary Constructor 2m
- Creating Private Fields and Methods 2m
- Creating Subclasses Using Extends 2m
- Restricting Inheritance Using Final Keyword 2m
- Creating Abstract Classes and Overriding Members 3m
- Overriding Behavior in Subclasses 2m
- Creating Companion Objects 5m
- Performing Implicit Conversions 2m