Chapter 6. Working 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're familiar with the foundational concepts and techniques of practical, small-scale F# programming. This chapter covers language constructs related to object-oriented (OO) programming. We assume some familiarity with the basic concepts of OO programming, although you may notice that our discussion of objects deliberately deemphasizes techniques such as implementation inheritance.

The first part of this chapter focuses on OO programming with concrete types. You're then introduced to the notion of object interface types and some simple techniques to implement them. The chapter covers ...

Get Expert F# 2.0 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.