Fortran

Guide To Learn

Binding procedures to a derived type

Besides storing arbitrary data in type components, we can also bind functions and subroutines to the type, making them type-bound methods. Similar to the custom constructor procedures, there are two steps to defining a type-bound method. The first is to define the function or subroutine itself, and the second is to specify the binding in the type definition block.

Binding procedures to a derived type

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top