Abstract
This chapter introduces and discusses type parameterisation. We have already seen examples of type parameterisation in the collection types where a List can be parameterised to hold only Strings, Person objects or integers. In this chapter, we will look at how you can create your own parameterised types and the options available for controlling the types that can be used with those parameterisations.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2018 Springer International Publishing AG
About this chapter
Cite this chapter
Hunt, J. (2018). Type Parameterisation. In: A Beginner's Guide to Scala, Object Orientation and Functional Programming. Springer, Cham. https://doi.org/10.1007/978-3-319-75771-1_28
Download citation
DOI: https://doi.org/10.1007/978-3-319-75771-1_28
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-75770-4
Online ISBN: 978-3-319-75771-1
eBook Packages: Computer ScienceComputer Science (R0)