Object Oriented Concepts – Objects
As part of this topic we will see about a special type of class called ObjectObject Scala is more object-oriented than Java because in Scala, we cannot have static members. Instead, Scala has singleton objects Object is a keyword which represents singleton class. Creating a Scala objectExample object HelloWorld { def main(args: Array[String]): Unit = { …