12. Adding Class to C++

  1. Stephen R. Davis

Published Online: 31 OCT 2011

DOI: 10.1002/9781118257524.ch12

C++ for Dummies®, 6th Edition

C++ for Dummies®, 6th Edition

How to Cite

Davis, S. R. (2009) Adding Class to C++, in C++ for Dummies®, 6th Edition, Wiley Publishing, Inc., Hoboken, NJ, USA. doi: 10.1002/9781118257524.ch12

Publication History

  1. Published Online: 31 OCT 2011
  2. Published Print: 27 APR 2009

ISBN Information

Print ISBN: 9780470317266

Online ISBN: 9781118257524

SEARCH

Keywords:

  • c++;
  • data;
  • classes;
  • defining class members;
  • member functions

Summary

This Chapter contains sections titled:

  • Introducing the Class

  • The Format of a Class

  • Accessing the Members of a Class

  • Activating Our Objects

  • Adding a Member Function

  • Calling a Member Function

  • Scope Resolution (And I Don't Mean How Well Your Microscope Works)

  • Defining a Member Function in the Class

  • Keeping a Member Function After Class

  • Overloading Member Functions