Class and Object keyword In Scala Programming

Reading Time: 2 minutes Scala is hybrid language contain both functional and object oriented functionality. Scala was created by Martin Odersky. Scala run on JVM, and you can also use java api with in scala program. You can write Scala program with two keyword 1. class and 2. object. Example: class Car{ def run(){ println(“running”); } } object App{ def main(args: Array[String]) { println(“hello World”); val car = new Continue Reading