Part I: Vocabulary from Chapter 1 of ADTs, Data Structures, and Problem Solving with C++ Flashcards
Abstract Data Type (ADT)
A data type whose implementation is hidden from the user and is accessed only through a defined interface.
Data Structure
A way to organize and store data in a computer so that it can be used efficiently.
Encapsulation
The principle of restricting access to the details of an object’s implementation while only exposing necessary functionality.
Dynamic Memory Allocation
The process of allocating memory at runtime using pointers and functions like new and delete in C++.
Pointer
A variable that stores the memory address of another variable.
Reference Variable
An alias for another variable, created using & in C++.
Stack vs. Heap
The stack is used for static memory allocation (e.g., local variables), while the heap is used for dynamic memory allocation.
Function Prototype
A declaration of a function that specifies its return type and parameters but not its implementation.