Scala – Singleton object

  • date 29th December, 2020 |
  • by Prwatech |
  • 0 Comments

 A singleton object can extend classes and traits.

Here is an Example, Run the following program for Singleton Object:

OUTPUT:

Quick Support

image image