CHAPTER 6Working with Objects and Modules

Chapters 2 through 5 dealt with the basic constructs of F# functional and imperative programming, and by now we trust you are familiar with the foundational concepts and techniques of practical, small-scale F# programming. In this chapter, we cover language constructs related to object-oriented (OO) programming. We assume some familiarity with the basic concepts of OO programming, though you may notice that our discussion of objects deliberately de-emphasizes techniques such as implementation inheritance.

The first part of this chapter focuses on OO programming with concrete types. We then introduce the notion of object interface types and show some simple techniques to implement them. We then cover ...

Get Expert F# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.