Advertisement

Stylish F# pp 183-227 | Cite as

Classes

  • Kit Eason
Chapter

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. 

Copyright information

© Kit Eason 2018

Authors and Affiliations

  • Kit Eason
    • 1
  1. 1.Farnham, SurreyUK

Personalised recommendations