11.11. Glossary

member function:

A function that operates on an object that is passed as an implicit parameter named this.

nonmember function:

A function that is not a member of any structure definition. Also called a “free-standing” function.

invoke:

To call a function “on” an object, in order to pass the object as an implicit parameter.

current object:

The object on which a member function is invoked. Inside the member function, we can refer to the current object implicitly, or by using the keyword this.

this:

A keyword that refers to the current object. this is a pointer, which makes it difficult to use, since we do not cover pointers in this book.

interface:

A description of how a function is used, including the number and types of the parameters and the type of the return value.

function declaration:

A statement that declares the interface to a function without providing the body. Declarations of member functions appear inside structure definitions even if the definitions appear outside.

implementation:

The body of a function, or the details of how a function works.

constructor:

A special function that initializes the instance variables of a newly-created object.

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

You have attempted 1 of 4 activities on this page