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