Constructors, Fields, Objects, & Inheritance

Scala 2.11.7    |    Beginner
  • 9 videos | 58m 27s
  • Includes Assessment
  • Earns a Badge
Likes 21 Likes 21
Scala is an object-oriented programming language, so one of the main constructs is a class. Examine classes in Scala, including constructors, fields, objects, and inheritance.

WHAT YOU WILL LEARN

  • create constructors for classes in Scala
    create fields in Scala classes, and describe behaviors of different field types
    use automatic getters in Scala and override them
    use automatic setters in Scala and override them
    declare and use singleton objects in Scala
  • use companion objects in Scala
    create and use a subclass in Scala
    use traits in Scala
    create a Scala application that contains a class, a subclass, and a companion object

IN THIS COURSE

  • Playable
    1.  Constructors
    5m 50s
    Learn how to create constructors for classes in Scala. FREE ACCESS
  • Playable
    2.  Creating Fields in Classes
    5m 51s
    In this video, you will learn how to create fields in Scala classes, and describe behaviors of different field types. FREE ACCESS
  • Locked
    3.  Getters
    6m 12s
    Find out how to use automatic getters in Scala and how to override them. FREE ACCESS
  • Locked
    4.  Setters
    7m 16s
    Find out how to use automatic setters in Scala and how to override them. FREE ACCESS
  • Locked
    5.  Singleton Objects
    4m 57s
    In this video, you will learn how to declare and use singleton objects in Scala. FREE ACCESS
  • Locked
    6.  Companion Objects
    5m 8s
    In this video, learn how to use companion objects in Scala. FREE ACCESS
  • Locked
    7.  Subtype Inheritance
    6m 43s
    During this video, you will learn how to create and use a subclass in Scala. FREE ACCESS
  • Locked
    8.  Traits
    9m 4s
    In this video, you will learn how to use traits in Scala. FREE ACCESS
  • Locked
    9.  Exercise: Working with Scala
    7m 27s
    In this video, you will learn how to create a Scala application that contains a class, a subclass, and a companion object. FREE ACCESS

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.

Digital badges are yours to keep, forever.

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Likes 103 Likes 103  
Likes 31 Likes 31