Skip to Content
Beginning C++
book

Beginning C++

by Ivor Horton
November 2014
Beginner content levelBeginner
632 pages
19h 31m
English
Apress
Content preview from Beginning C++

CHAPTER 11

image

Defining Your Own Data Types

In this chapter, I’ll introduce one of the most fundamental tools in the C++ programmer’s toolbox: classes. I’ll also present some ideas that are implicit in object-oriented programming and show how these are applied.

In this chapter you’ll learn:

  • What the basic principles in objected-oriented programming are
  • How you define a new data type as a class, and how you can create and use objects of a class type
  • What class constructors are, and how you define them
  • What the default constructor is, and how you can supply your own version
  • What the default copy constructor is
  • What a friend function is
  • What privileges ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning C++

Beginning C++

Brian Foster
Advanced C++

Advanced C++

Gazihan Alankus, Olena Lizina, Rakesh Mane, Vivek Nagarajan, Brian Price
Expert C++

Expert C++

Vardan Grigoryan, Shunguang Wu

Publisher Resources

ISBN: 9781484200070Purchase book