Data structures include:
The issue with arrays is that if you want to add another element, you have to create a new array with size + 1 and copy over the old array elements. Arrays are not flexible enough for an efficient implementation of data structures.
int arr = [1, 2, 3, 4];
int* arr = new int[4];
“Flexibility” means we need to have the ability to extend or shrink our data structure.

The implementation of these data structures in C could be done using the struct keyword.
We can use the class keyword because we can combine data members and function members.
base class for data structures