On Thursday, December 15, 2022 at 5:31:35 AM UTC-8, rbader wrote:
(snip)
> If the action of the procedure does not need any information from the object,
> but does depend on the type of the object.
For Java, static methods don't depend on any object, and are normally
qualified with the name of the class. There are Math.sqrt() and Math.sin().
> Note that overriding of a TBP should work independently of whether the object is passed or not.
You can call a static method qualifying it with an object from the class.
It is resolved based on the declared class, not on an actual class of any object
that might, or might not be, assigned to it.
They are resolved at compile time, not at run time like object methods.
There should be a corresponding system in OO Fortran, though I
don't know how to do it.