Midterm Review Flashcards
(43 cards)
What is OOP?
Object-Oriented Programming - organizes software design around objects
What is abstraction?
Hiding the complex processes behind the program and only exposing what is necessary for the functionality of the user (ex. gas pedal in a car)
Define a class
A blueprint for creating objects (defines a set of data and functions)
Define an object
Is an instance of a class
Define instantiation
The process of creating an actual instance (or object) from a class
What is ADT?
Abstract Data Type - hides the internal details of the data structure and only provides the essential operations
Member functions
Functions that are defined within a class and operate on the data of objects created in that class (AKA methods)
Member variables
Variables define within a class
Method
A function that is defined with a class and operates on the objects of that class (AKA member function)
Access Specifiers
Control the visibility and accessibility of class members
Global
Variable that are defined outside of all functions and have a global scope
Inline
A small function that you tell the compiler to try to insert directly into the places where it’s called (instead of making a regular function call)
Constructor
A special member function that is automatically called when an object of a class is created
Destructor
A special member function that is automatically called when an object of a class is destroyed
Static
Something that is fixed or unchanging
Default Constructor
Initializes an object with no arguments
Default Parameter
A value that is automatically assigned to a function parameter if no argument is provided
Constructor Delegration
Allows for one constructor to call another constructor in the same class
Accessor Method
A member function in a class that retrieves the value (AKA getter)
Preprocessor Directive
A command that is processed by the preprocessor before the actual compilation of the code begins
Iostream Header File
Part of the standard library and provides functionality for input and output operations
Cin
Input for c++
Cout
Output for c++
Named Constants
Variables whose values are set at compile time and CANNOT be changed