Chapter 7

Defining Your Own Data Types

WHAT YOU WILL LEARN IN THIS CHAPTER:

  • How structures are used
  • How classes are used
  • The basic components of a class and how you define class types
  • How to create, and use, objects of a class
  • How to control access to members of a class
  • How to create constructors
  • The default constructor
  • References in the context of classes
  • How to implement the copy constructor

WROX.COM CODE DOWNLOADS FOR THIS CHAPTER

You can find the wrox.com code downloads for this chapter on the Download Code tab at www.wrox.com/remtitle.cgi?isbn=9781118368084. The code is in the Chapter 7 download and individually named according to the names throughout the chapter.

Get Ivor Horton's Beginning Visual C++ 2012 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.