Tagged: scala

Scala – Recursive Functions

Scala – Recursive Functions

In Scala, Recursion is an important concept in pure functional programming language.By definition, Recursive function is a function which calls itself. We need to to be careful while using recursive functions, because program may...

Scala Field Overriding

Scala Field Overriding

In Scala, we can override the fields but with some rules. Let’s understand it with some examples. If you look at the below code, where we are overriding the field named ‘age’ from 30...

Scala – This Keyword

Scala – This Keyword

In Scala, this keyword is used to refer as current object of the class. By using dot(.) after it, we can call instance variable, methods and constructors. As we have seen in earlier post,...

Scala – Companion Object

Scala – Companion Object

In the previous chapter, we have learnt about the Singleton Object. Now, let’s see study about companion object. When you have a class with same name as singleton object, it is called companion class...

Scala – Singleton Object

Scala – Singleton Object

In this tutorial, we are going to learn what is Singleton Object in Scala. You would be aware of static keyword in java which belongs to the class. One way in which Scala is...

Scala – Objects & Classes

Scala – Objects & Classes

In this tutorial, we will learn about objects and classes in scala which comes under OOPs concepts. In OOP, it is very important to understand what is an object and a class. Let’s understand...

Scala – Data Types

Scala – Data Types

In this tutorial, we will see the data types used in scala. What is a data type? A data type is a categorisation of data that tells compiler what type of value the variable...

Scala – First Steps

Scala – First Steps

In this tutorial, you will get familiar with basic syntax of scala which will help you to understand detailed chapters on scala. If you are coming from Java background, it will be easy for...

Scala Overview

Scala Overview

Scala tutorial provides from basics to advance concepts. It is designed to target beginners as well as professionals. What do you know about Scala? The name scala comes from the word scalable and definitely,...