When a structure is mentioned in C++ context, in fact, we are talking about a feature of the language that enables the programmer to create data structures that can represent data grouping like what you would find on a license, library card, price tag for a product, a card game card, etc.

If we want to write C++ code that represents Arthur’s driver’s license we would write:

Here is what we did. Using the keyword struct we defined a data structure by the name DriversLicense. Also we defined that this data structure has the following members: number, name, address, and we didn’t implement the DOB field yet (we’ll discuss this later). Finally, we declared two objects named MyLicense and YourLicense.