Objects and Companions in Scala | Rock the JVM

Описание к видео Objects and Companions in Scala | Rock the JVM

Written version: http://blog.rockthejvm.com/why-we-use...

Check out the Scala & FP essentials course: https://rockthejvm.com/p/scala

This is a beginner-level video. If you're learning Scala and its distinguishing feature, this video is for you.

In this video we'll explore Scala objects, which implement the singleton pattern in a single line of code. We look at how Scala classes and objects can work together to form companions, and what's the best practice for structuring your code in between classes and their companion objects in Scala. We also discuss some nuance about the type difference between classes and objects.

Follow Rock the JVM on:
LinkedIn:   / rockthejvm  
Twitter:   / rockthejvm  
Blog: https://rockthejvm.com/blog

-------------------------------------------------------------------------
Home: https://rockthejvm.com
-------------------------------------------------------------------------

Комментарии

Информация по комментариям в разработке