© J. Burton Browning and Bruce Sutherland 2020
J. B. Browning, B. SutherlandC++20 Recipeshttps://doi.org/10.1007/978-1-4842-5713-5_5

5. Classes

J. Burton Browning1  and Bruce Sutherland2
Bolivia, NC, USA
Carnegie, VIC, Australia

Classes are the language feature that sets C++ apart from the C programming language. The addition of classes to C++ allows it to be used for programs designed using the object-oriented programming (OOP) paradigm. OOP quickly became the main software engineering practice used worldwide to build complex applications. You can find class support in most leading languages today, including Java, C#, and Objective-C.

Recipe 5-1. Defining a Class


Your program design calls for objects, and you need to be able to define ...

Get C++20 Recipes: A Problem-Solution Approach now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.