Skip to main content

Object Orientation in Scala

  • Chapter
  • First Online:
Beginning Scala
  • 2828 Accesses

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:

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Vishal Layka

About this chapter

Cite this chapter

Layka, V., Pollak, D. (2015). Object Orientation in Scala. In: Beginning Scala. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-0232-6_3

Download citation

Publish with us

Policies and ethics