Wednesday, February 8, 2012

The list of 'keyword' you must known

  1. friend -- Grant non-member function access to private data.
  2. inline -- Optimize calls to short functions.
  3. namespace -- Partition the global namespace by defining a scope.
  4. new -- Allocate dynamic memory for a new variable.
  5. static -- Create permanent storage of a variable.
  6. template -- Create generics functions.
  7. this -- A pointer to the current object.
  8. using -- Import complete or partial namespace.
  9. virtual -- Create a function that can be overridden by a derived class.

No comments:

Post a Comment