Grow your YouTube views, likes and subscribers for free
Get Free YouTube Subscribers, Views and Likes

Objects and Companions in Scala | Rock the JVM

Follow
Rock the JVM

Written version: http://blog.rockthejvm.com/whyweuse...

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

This is a beginnerlevel 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'>https://rockthejvm.com/blog


Home: https://rockthejvm.com

posted by mahashumu82