Author: Shekhar Sharma

Scala – Inheritance 0

Scala – Inheritance

In the previous post, we have learnt about method overloading. Now, we will see what is Inheritance in scala. Inheritance is used for reusability of the code. When a class wants to use/reimplement code...

Scala – Method Overriding 0

Scala – Method Overriding

In previous post, we have seen what is Inheritance. Now, we will learn about method overriding. When a subclass has the same name method as defined in the parent class. It is called as...

Scala – Method Overloading 0

Scala – Method Overloading

In previous post, we have seen what is auxiliary constructor . Now, let’s understand the method overloading in scala. What is method overloading? When a class can have multiple methods with same name but...

Scala – Auxiliary Constructor 0

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 0

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 – Common code in package object 0

Scala – Common code in package object

In the previous chapter, we have learnt about companion object in scala. Now, we will see what is a package object. Main objective of a package is to keep files structured and easy to...

Scala – Companion Object 0

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 0

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 0

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 0

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