Abstract
F# classes give you the full power of object oriented programming. We show how to use classes to go beyond record types, for example, when the external and internal representations of data need to differ, or when we need to hold or mutate state over time. We show how they are also a great solution when you need to interact closely with an OO codebase, for instance, by participating in a class hierarchy.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Kit Eason
About this chapter
Cite this chapter
Eason, K. (2018). Classes. In: Stylish F#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4000-7_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4000-7_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3999-5
Online ISBN: 978-1-4842-4000-7
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)