Advertisement

Object Orientation in Scala

  • Vishal Layka
  • David Pollak
Chapter

Abstract

The essence of OOP is modelling abstractions for handling complexities in software development, by means of classes and objects. Finding right abstractions, however, remains an arduous quest. An object in software is an abstraction of a real-world object, comprising essential properties and behaviors that set it apart from other objects. OOP is successful because object-oriented languages implement a number of principles such as encapsulation, inheritance, and polymorphism that make the software design and construction process much simpler and elegant when compared to other antiquated approaches. To illustrate these principles we concoct an abstraction with the aid of a classic example of shapes:

Keywords

Case Class Code Block Companion Class Companion Object Return Type 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Vishal Layka 2015

Authors and Affiliations

  • Vishal Layka
    • 1
  • David Pollak
    • 1
  1. 1.EvereBelgium

Personalised recommendations