(CSCI 2010 Final: 2026 Questions and Answers)
Each object of a class has its own copy of the class's Member Variables
This type of member variable may be accessed before Static
any objects of the class have been created.
This operator may be used to assign one object to =
another
C++ requires that a copy constructor's parameter be Reference object
a(n)
C++ allows you to redefine the way ________ work when Standard Operators
used with class objects.
When objects contain pointers, it is a good idea to Copy constructor
create an explicit ______ function
A good reason for overloading an operator is to work in its usual way, but with programmer-defined data types
enable it to:
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
When a class contains an instance of another class, it is Dynamic Composition
known as
If you do not furnish one of these, an automatic Overloaded assignment operator
memeberwise copy will be performed when one
object is assigned to another object
It is a good idea to make a copy constructor's constant, const
parameters______by specifying______keyword in the
parameter list
A reason to overload the _____ is to write classes that square brackets operator
have array-like behaviors
If a member variable is declared ________, all objects of static
that class have access to that variable.
A member function that is declared_____, may not static
access any non-static data members in the class
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
This type of function is not a member of a class, but it Friend
has access to the private members of the class
This is a special function that is called whenever a new Copy constructor
object is created and initialized with another object's
data
If you do not furnish one of these a default will be Copy constructor, constructor, destructor
provided for you by the compiler
When you redefine the way a standard operator works Overloaded
when it is used with class objects, you have ________ the
operator.
To overload the + operator, you would write a function operator+
named:
This is a special built-in pointer that is available to a this pointer
class's member functions
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
Object composition is useful for creating this type of has a
relationship between classes
A(n)______operator can work with programmer-defined Overloaded
data types
When you overload an operator, you cannot change Operands
the number of _____ taken by the operator
A(n) _____ informs the compiler that a class will be forward declaration
declared later in the program
In the following function header, FeerInches Dummy parameter
FeetInches::operator++(int) the word (int) is known as a:
_____Allows us to crate new classes based on existing inheritance
classes
When you derive a class from an existing class, you may
_____ add new data and functions
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
Each object of a class has its own copy of the class's Member Variables
This type of member variable may be accessed before Static
any objects of the class have been created.
This operator may be used to assign one object to =
another
C++ requires that a copy constructor's parameter be Reference object
a(n)
C++ allows you to redefine the way ________ work when Standard Operators
used with class objects.
When objects contain pointers, it is a good idea to Copy constructor
create an explicit ______ function
A good reason for overloading an operator is to work in its usual way, but with programmer-defined data types
enable it to:
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
When a class contains an instance of another class, it is Dynamic Composition
known as
If you do not furnish one of these, an automatic Overloaded assignment operator
memeberwise copy will be performed when one
object is assigned to another object
It is a good idea to make a copy constructor's constant, const
parameters______by specifying______keyword in the
parameter list
A reason to overload the _____ is to write classes that square brackets operator
have array-like behaviors
If a member variable is declared ________, all objects of static
that class have access to that variable.
A member function that is declared_____, may not static
access any non-static data members in the class
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
This type of function is not a member of a class, but it Friend
has access to the private members of the class
This is a special function that is called whenever a new Copy constructor
object is created and initialized with another object's
data
If you do not furnish one of these a default will be Copy constructor, constructor, destructor
provided for you by the compiler
When you redefine the way a standard operator works Overloaded
when it is used with class objects, you have ________ the
operator.
To overload the + operator, you would write a function operator+
named:
This is a special built-in pointer that is available to a this pointer
class's member functions
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM
, (CSCI 2010 Final: 2026 Questions and Answers)
Object composition is useful for creating this type of has a
relationship between classes
A(n)______operator can work with programmer-defined Overloaded
data types
When you overload an operator, you cannot change Operands
the number of _____ taken by the operator
A(n) _____ informs the compiler that a class will be forward declaration
declared later in the program
In the following function header, FeerInches Dummy parameter
FeetInches::operator++(int) the word (int) is known as a:
_____Allows us to crate new classes based on existing inheritance
classes
When you derive a class from an existing class, you may
_____ add new data and functions
3/30/2026, 5:31:26 PM 3/30/2026, 5:31:25 PM 3/30/2026, 5:31:22 PM