concept inheritance in category f#

appears as: inheritce
Get Programming with F#: A guide for .NET developers

This is an excerpt from Manning's book Get Programming with F#: A guide for .NET developers.

You might now say “You can implement e.g. stateless functions or expressions in C#”, and that’s true. However, this isn’t the default way of working in C# - it requires extra keywords, or extra hoops that need jumping through in order to achieve the required behaviour. In F#, the opposite is true for all of these features. Expressions are easy to achieve; statements are not. Composition is easy to achieve; inheritance feels somewhat unnatural etc.

I’m not going to explain all the ins and outs of inheritance to you here. The preceding sample maps almost directly 1:1 with equivalent C# code in terms of concepts. The only real thing to note is that in F# you need to mark the type with the [<AbstractClass>] attribute.