March 2018
Beginner to intermediate
458 pages
10h 34m
English
Classes are types of object which can contain functions, properties, and events. An F# class must have a parameter and a function attached like a member. Both properties and functions can use the member keyword. The following is the class definition syntax:
type [access-modifier] type-name [type-params] [access-modifier] (parameter-list) [ as identifier ] =[ class ][ inherit base-type-name(base-constructor-args) ][ let-bindings ][ do-bindings ]member-list [ end ]// Mutually recursive class definitions:type [access-modifier] type-name1 ...and [access-modifier] type-name2 ...
Let’s discuss the preceding syntax for class declaration:
Read now
Unlock full access