Skip to main content
Book cover

Stylish F# pp 183–227Cite as

Apress

Classes

  • Chapter
  • First Online:
  • 578 Accesses

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

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

Learn about institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Kit Eason

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics