CSE 1325 Exam 3 Study Guide With
Complete Solutions
object-oriented programming - ANSWER A style of programming focused on the use of
classes and class hierarchies
Polymorphism - ANSWER The provision of a single interface to multiple derived classes,
enabling the same method call to invoke different derived methods to generate different
results
inheritance - ANSWER Reuse and extension of fields and method implementations from
another class
Encapsulation - ANSWER Bundling data and code into a restricted container
Abstraction - ANSWER Specifying a general interface while hiding implementation details
(sometimes listed as a4th fundamental concept of OOP, though I believe it's common to most
paradigms)
Primitive type - ANSWER A data type that can typically be handled directly by the underlying
hardware
Enumerated type - ANSWER A data type consisting of a fixed set of constant values called
, enumerators (C++has both enum and enum class)
Class - ANSWER A template encapsulating data and code that manipulates it (C++ also has
struct, which isidentical other than default visibility)
Instance - ANSWER An encapsulated bundle of data and code (e.g., an instance of a program
is a process; aninstance of a class is an object)
Object - ANSWER An instance of a class containing a set of encapsulated data and associated
methods
Variable - ANSWER A block of memory associated with a symbolic name that contains an
object instance or aprimitive data value
Operator - ANSWER A short string representing a mathematical, logical, or machine control
action
Attribute - ANSWER A class member variable
Constructor - ANSWER A special class member that creates and initializes an object from the
class
Destructor - ANSWER A special class member that cleans up when an object is deleted
Complete Solutions
object-oriented programming - ANSWER A style of programming focused on the use of
classes and class hierarchies
Polymorphism - ANSWER The provision of a single interface to multiple derived classes,
enabling the same method call to invoke different derived methods to generate different
results
inheritance - ANSWER Reuse and extension of fields and method implementations from
another class
Encapsulation - ANSWER Bundling data and code into a restricted container
Abstraction - ANSWER Specifying a general interface while hiding implementation details
(sometimes listed as a4th fundamental concept of OOP, though I believe it's common to most
paradigms)
Primitive type - ANSWER A data type that can typically be handled directly by the underlying
hardware
Enumerated type - ANSWER A data type consisting of a fixed set of constant values called
, enumerators (C++has both enum and enum class)
Class - ANSWER A template encapsulating data and code that manipulates it (C++ also has
struct, which isidentical other than default visibility)
Instance - ANSWER An encapsulated bundle of data and code (e.g., an instance of a program
is a process; aninstance of a class is an object)
Object - ANSWER An instance of a class containing a set of encapsulated data and associated
methods
Variable - ANSWER A block of memory associated with a symbolic name that contains an
object instance or aprimitive data value
Operator - ANSWER A short string representing a mathematical, logical, or machine control
action
Attribute - ANSWER A class member variable
Constructor - ANSWER A special class member that creates and initializes an object from the
class
Destructor - ANSWER A special class member that cleans up when an object is deleted