Classes

Object-Oriented Programming in Scala

Reading Time: 3 minutes Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic. Scala is also an Object-Oriented language and in this blog, we will see how we achieve that in scala. Classes in Scala Class is like a blueprint for a real-world entity which we call object in programming languages. It provides the initial values for state Continue Reading

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