Data Types

In the following lesson, you will be introduced to Scala's type hierarchy.

Introduction

In Scala, every value has a type and each type is part of a type hierarchy. In a type hierarchy, the more generic types are at the top and as you go lower in the hierarchy, the types get more specific, i.e., have more requirements. Each type has a requirement of its own along with the requirements of all the types above it in the hierarchy.

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy