|
|
Review |
|
Classes and structures are containers of both data (members) and functions (methods).
Classes have a default access of private while
structures have a default access of public.
Use new and delete for memory allocation.
Constructors are automatically called when objects are created and destructors are called when they are destroyed. Constructors are methods with the same name as the class. Destructors are methods with the same name as the class prefixed with a tilde (~)
References are a new way to pass-by-reference without having to use pointer notation.