Show: Object Pascal C++
Display Preferences

__classmethod

From Appmethod Topics
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

Personal tools
In other languages