Javatpoint Logo
Javatpoint Logo

F# Object Expressions

F# object expression is a special expression. It creates a new instance of anonymous object type which is based on an existing base type, interface, or set of interfaces.

The syntax of Object Expressions in F# language is given below:


F# Object Expression When Type is Class.

In the following example, you can use other predefined and custom class also like System.Object.

Output:

Hello FSharp





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA