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.