__classmethod

From RAD Studio
Jump to: navigation, search

Go Up to Keywords, Alphabetical Listing Index


Category

Modifiers, Keyword Extensions

Syntax

virtual __classmethod int FUNCTION_NAME(int );
__classmethod virtual int FUNCTION_NAME(int );

Description

The __classmethod keyword was added to declare class methods in C++. A class method is similar to a static method, except that it has an additional (hidden) parameter: the metaclass of the class where the method is defined.

See Also