PPP Flashcards
(24 cards)
abstract class
a class that cannot be directly used to creat objects; often used in defining an interface to derviced classes. A class is made abstract by having pure virtual function or protected constructor.
address
a value that allows us to find an object in a computers memory
algorithm
a procedure or formula for solving a problem; a finite series of computational steps to produce a result
alias
an alternative way to referring to an object; often a name, pointer or reference
argument
a value passed to a function or a template, in which it is accessed through a parameter
assertion
a statement inserted into a program to state that something must always be true at this point in the program
base class
a class used as the base of a class hierarchy. Typically has one or more virtual functions
bit
basic unit or information, valued 0 or 1.
byte
basic unit of addressing, typically holding 8 bits.
class
a user defined type that may contain data members, function members, and member types.
concrete class
a class for which objects can be created
constructor
an operation that initializes an object. Typically establishes an invariant and often acquires resources needed for an object to be used.
inveriant
something that must always be true at a given point of a program; typically used to describe the state (set of values) of an object or the state of a loop before entry into the repeated statement
reference
a value describing the location of a typed value in memory (2) a variable holding such a value.
container
object that holds elements (other objects)
ex:std::vector<int> myVector;</int>
declaration
the specification of a a name with its type in a program
definition
a declaration of an entity that allocates memory
derived class
a class derived from one or more base classes
destructor
an operation that is implicity invoked when an object is destroyed, often releases resources if made to do so.
scope
the region of a program source code in which a name can be referred to.
subtype
derived type; a type that has all properties of a type and possibly more
supertype
base type; a type that has a subset of the properties of a type
iteration
repetition of a task or activity