Category: Scala Tutorial

Scala – Auxiliary Constructor

Scala – Auxiliary Constructor

In the previous post, we have learnt primary constructor in scala. Now, we will learn about Auxiliary constructor in scala. In scala, constructor other than primary constructor are called Auxiliary Constructor or secondary constructor....

Scala – Primary Constructor

Scala – Primary Constructor

In the previous chapter, we have learnt about package object in scala. Now, we will see constructor and its types in scala. Constructor is used for creating an instance (object) of a class. Scala has 2...

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 – OOPs concepts

Scala – OOPs concepts

Scala combines object-oriented and functional programming in one concise, high-level language. The name Scala comes from the word scalable, and true to that name, it’s used to power the busiest websites in the world, including...

Scala – Variables

Scala – Variables

In this tutorial, we will learn about scala variables. Variable is a name declared in programming which reserves memory location to store a value.Based on data types, memory is allocated to a variable by...

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...