Chapter 6. Objects and Classes
In This Chapter
• C++ Objects as Physical Objects 223
• C++ Objects as Data Types 226
• Objects as Function Arguments 233
• The Default Copy Constructor 238
• Returning Objects from Functions 240
And now, the topics you’ve all been waiting for: objects and classes. The preliminaries are out of the way. We’ve learned about structures, which provide a way to group data elements. We’ve examined functions, which organize program actions into named entities. In this chapter we’ll put these ideas together to create ...
Get Object-Oriented Programming in C++, Fourth 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.