Ch14

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

It is a good idea to make a copy constructor's parameters __ by specifying the __ keyword in the parameter list

constant,const

This is a special function that is called whenever a new object is created and initialized with another object's data

copy constructor

When objects contain pointers, it is a good idea to create an explicit __ function

copy constructor

If a member variable is declared __, all objects of that class have access to that variable

static

This type of member variable may be accessed before any objects of the class have been created

static

This operator may be used to assign one object to another

=

If you do not furnish one of these a default will be provided for you by the compiler

All of these (copy constructor, constructor, destructor)

This type of function is not a member of a class, but it has access to the private members of the class

friend

Object composition is useful for creating this type of relationship between classes

has a

Each object of a class has its own copy of the class's

member variables

When a class contains an instance of another class, it is known as

object composition

When you overload an operator, you cannot change the number of __ taken by the operator

operands

To overload the + operator, you would write a function named

operator +

A(n) __ operator can work with programmer-defined data types

overloaded

When you redefine the way a standard operator works when it is used with class objects you have __ the operator

overloaded

If you do not furnish one of these, an automatic memberwise copy will be performed when one object is assigned to another object

overloaded assignment operator

C++ requires what a copy constructor's parameter be a(n)

reference object

A reason to overload the __ is to write classes that have array-like behaviors

square brackets [] operator

c++ allows you to redefine the way__ work when used with class objects

standard operators

A member function that is declared __ may not access any non-static data members in the class

static

This is a special built-in pointer that is available to a class's member functions

this pointer

A good reason for overloading an operator is to enable it to

work in its usual way, but with programmer defined data types


संबंधित स्टडी सेट्स

Chapter 10 - Interest in Real Estate

View Set

Levels of Structural Organization in the Human Body

View Set

Where the Mountain Meets the Moon

View Set

Unit 4: Types and Characteristics of Derivative Securities

View Set

Fires and Extinguishing Media, Portable, Electrical

View Set