Share via


The // Operations Comment

OverviewHow Do ITutorial

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 since 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, under An Example of the Comments, the list includes two member functions under this comment: ReadString and WriteString.

As with attributes, operations may be further subdivided.

What do you want to know more about?