Inheritance and casts

In F#, the inherit keyword is used while declaring a class. The following is the syntax: 

type MyDerived(...) = inherit MyBase(...) 

In a derived class, we can access all methods and members of the base class, but it should not be a private member. To refer to base class instances in the F# language, the base keyword is used.

Get .NET Core 2.0 By Example 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.