Invoking operations

Use a C format to invoke operations on objects.

About this task

To invoke operations on objects, use standard C function calls in the following format:

<opname>(<object*>, p1,..,pn);

The first argument to the function must be a pointer to the object that is the target of the operation. For example, if itsServer is a pointer to an object that has an operation start(), invoke this operation with:

Server_start(itsServer, p1, p2);

If the object that is the target of the operation is a singleton, you can omit the context pointer as the first argument of the function, as follows:

Singleton_start(p1, p2);

Feedback