C++ - Keywords
C++ - Keywords
com/blog/2010/01/18/description-of-c-keywords/
Key words:
Part I:
% = modulo (remainder)
== equal to
!= not equal to
Pass by reference
Declaring function prototype (declare functions before their definition, eg, ch7_5)
Recursive function
Overloading functions (different functions, eg, types, parameters, etc with same name)
Array as parameters
Part II:
class = data structure where member data can also be objects such as functions
class constructor = a class can include a special function called its constructor, which is automatically
called whenever a new object of this class is created, allowing the class to initialize member variables or
allocate storage.
Static members = same value for all objects in the same class
Const member functions = access to objects outside the class are read-only
Class template = function template (members in template use the same template parameters/types)
Copy constructor = duplicate a constructor with same type (shallow copy = copy + original share same
value; deep copy = copy + original share same distinct values)
Friend function = non-member function that accesses members of private and protected class
Polymorphism = a pointer to base class can be the same type as a pointer to the derived class
Abstract base class = base class with virtual members that have no definition (pure virtual functions)
Part III:
Dynamic cast = allows type conversion to point to an object with same type
Const cast = pointer to object with const (to remove const or set const)