Udostępnij za pośrednictwem


The // Operations Comment

The // Operations section of an MFC class declaration contains member functions that you can call on the object to make it do things or perform actions (perform operations). These functions are typically non-const because they usually have side effects. They may be virtual or nonvirtual depending on the needs of the class. Typically, these members are public.

In the sample listing from class CStdioFile, in An Example of the Comments, the list includes two member functions under this comment: ReadString and WriteString.

As with attributes, operations can be further subdivided.

See Also

Concepts

Using the MFC Source Files

An Example of the Comments

The // Implementation Comment

The // Constructors Comment

The // Attributes Comment

The // Overridables Comment