A Fortran analog to python's super()?

前端 未结 1 857
星月不相逢
星月不相逢 2021-01-06 01:24

When working with classes and in particular with extended types in Fortran 2003/8: is there any analog of python\'s super() function that can be used to call a method from

相关标签:
1条回答
  • 2021-01-06 01:40

    Yes, if the parent type is not abstract.

    CALL object%ParentType%Binding(...)
    

    Otherwise you can always just call the specific procedure that implements the binding in the parent.

    0 讨论(0)
提交回复
热议问题