General Flashcards
What is polymorphism?
Polymorphism describes a pattern in object oriented programming in which classes have different functionality while sharing a common interface.
What is encapsulation?
A language mechanism for restricting access to some of the object’s components.
What are storage classes?
A storage class defines the scope (visibility) and life-time of variables and/or functions within a C++ Program. These specifiers precede the type that they modify.
auto register static extern mutable
What is the register storage class?
The register storage class is used to define local variables that should be stored in a register instead of RAM.
What is the static storage class?
The static storage class instructs the compiler to keep a local variable in existence during the life-time of the program instead of creating and destroying it each time it comes into and goes out of scope.
What is the extern storage class?
The extern storage class is used to give a reference of a global variable that is visible to ALL the program files.
What is inheritance?
Inheritance enables new objects to take on the properties of existing objects.