Creating a New Data Type in C++

With C++, you define both the data type and its operations at once, by declaring a “class.” A class consists of data and functions that operate on that data.