Similar Collections


Classes & Objects are the basic concepts of the object-oriented programming approach. A class is a user-defined data type (can be considered as a blueprint/prototype) that is used to create objects. A class contains the data fields and member functions. An object can be considered as a variable of the class.

This study list contains solved Scala classes & objects programs, practice these Scala programs to learn the concept of classes & objects in Scala, these programs contain the solved code, outputs, and the detailed explanation of the statements, functions used in the Scala classes & objects programs.

questions

Title
Scala program to demonstrate the 'private' access modifier
Scala program to demonstrate the \'public\' access modifier
Scala program to create a private class
Scala program to create a private singleton object
Scala program to create a private case class
Scala program to demonstrate the \'this\' keyword
Scala program to implement cascaded method call
Scala program to create a method returning an object
Scala program to pass an object as an argument
Scala program to call constructor using \'this\' keyword
Scala program to implement method overloading based on the different number of arguments
Scala program to implement method overloading based on different types of arguments
Scala program to implement method overloading based on a different order of arguments
total questions: 13

Questions

13

Views

177

Best Answers

299

Points

5