다음을 통해 공유


// Operations Comment

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at -- 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

Using the MFC Source Files
An Example of the Comments
// Implementation Comment
// Constructors Comment
// Attributes Comment
// Overridables Comment