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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.125.7