1/14
These flashcards cover key concepts and vocabulary related to Object Oriented Programming in C++, including definitions of classes, objects, and fundamental principles such as encapsulation and operator overloading.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
Class
A user-defined data type that serves as a blueprint for creating objects.
Object
An instance created from a class that represents the result of the blueprint.
Encapsulation
A fundamental principle of object-oriented programming that restricts access to the internals of a class.
Data Hiding
A principle where private data members cannot be accessed directly from outside the class, protecting the internal state.
Class Constructor
A special member function that is executed when a new object of the class is created.
Default Constructor
A constructor that does not take any parameters and is automatically provided by the compiler if none is defined.
Operator Overloading
A feature that allows redefining the way operators work with user-defined types.
Binary Operator
An operator that takes two operands.
Unary Operator
An operator that takes only one operand.
Arithmetic Operators
Operators such as +, -, *, /, which can be overloaded for custom classes.
Comparison Operators
Operators such as ==, !=, <, etc., which can be overloaded to compare objects.
Friend Function
A function that is not a member of a class but has access to its private members.
Constructor Initialization
The process of setting initial values for object attributes within the constructor.
Method
A function defined in a class that describes the behaviors of the objects created from the class.
Access Specifier
Keywords used to set the accessibility of classes and their members (public, private, etc.).