<aside> 💡 Key concepts:

Learning outcomes:

2.1. Concepts

Basic Data Types: Numbers and Strings

C++ has several built-in data types for representing numbers and strings:

When used with integers, signed means that the variable can store positive and negative numbers, while unsigned means that the variable can store only non-negative numbers. For example, an unsigned int can store values between 0 and 4294967295, while a signed int can store values between -2147483648 and 2147483647.

Classes and Data

A class is a user-defined data type that combines data members and member functions into a single unit. Classes are the foundation of object-oriented programming.

Classes and Functions

A class can have different types of member functions: