Accessible functionsetc assorted user accessible

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: assorted user-accessible functions,etc. accessible functions,etc assorted user-accessible functions,etc. accessible functions,etc private: private: data (& functions) hidden from the user }; data (& functions) hidden from the user }; Applied Programming Applied Programming The implementation of the class is the actual The code for the functions. The header file should also be #included here. #include Any such member functions have access to both Any the public and private sections of the class – public and private sections and can just refer to the variables (and functions) and by name. by These functions are preceded by a prefix These consisting of the class name and two colons as in consisting LinkedList::Remove() But here is where the power of the class appears. W e'll see the effect of this prefix on the compiled We'll code a little later. A class is a declared type – not a variable. class type Once the type is declared, instances of that type Once instances of can be declared. can Applied Programming For example LinkedList list; declares...
View Full Document

Ask a homework question - tutors are online