Skip to content

Tag Archives: Scala-OOPS

Heighten and Widen are the functions needed to enable the clients to place elements of different widths on top of each other, or place elements… Read More
A standardized way to override default Accessors and Mutators hasn’t been fixed by Scala, yet users of this programming language use one specific and a… Read More
The visibility of the Constructor Fields in the Scala language is maintained and controlled by the way of declaration. These can be declared in the… Read More
The factory method is used to offer a single interface to instantiate one of the multiple classes. In the Factory pattern, the objective is to… Read More
This concept is used when we want to call super class method. So whenever a base and subclass have same named methods then to resolve… Read More
To determine the class of a Scala object we use getClass method. This method returns the Class details which is the parent Class of the… Read More
Stateful Objects are that objects which have changeable members or mutable members, that may vary what transactions or operations were previously performed on the object.… Read More
Polymorphism is the ability of any data to be processed in more than one form. The word itself indicates the meaning as means many and… Read More
Getter and Setter in Scala are methods that helps us to get the value of variables and instantiate variables of class/trait respectively. Scala generates a… Read More
Consider the following Scala program: filter_none edit close play_arrow link brightness_4 code // Scala Program without override toString method    // Creating Class class Language(LangArticle:… Read More
A member of a class or trait is said to be abstract if that particular member does not have a complete definition in the class.… Read More
In any object-oriented programming language, Overriding is a feature that allows a subclass to provide a specific implementation of a method or field that is… Read More
Method Overriding in Scala is identical to the method overriding in Java but in Scala, the overriding features are further elaborated as here, both methods… Read More
In Scala, forming a Generic Class is extremely analogous to the forming of generic classes in Java. The classes that takes a type just like… Read More
What is an Exception? An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time. These… Read More