SUMMARY
  • Method is another term for member function.
  • When members are declared private, they are not available outside the class. It represents principle of data hiding.
  • Class is a user-defined variable type. A class has attributes as data members and functions required for processing the data as methods.
  • An object (variable) is considered as instantiation of a class (type).
  • Data members of an object are referred to as attributes of the object.
  • Data members are qualified using dot operators (just like structure members).
  • Public, private and protected are the three access specifiers. They can be applied only to data members and member functions of a class.
  • If a member is public, it can be used by any function.
  • If a member is private, it can be ...

Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.