isFactory abstract method

bool isFactory()

Checks if this method is a factory constructor.

Returns:

  • true if declared with factory keyword
  • false otherwise

Note: Factory methods may return subtypes of the declaring class.

Implementation

bool isFactory();