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:
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights 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
DOI: https://doi.org/10.1007/978-1-4842-0232-6_3
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-0233-3
Online ISBN: 978-1-4842-0232-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)