Data structures Quiz 8

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

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)

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

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

static

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

Operator +

C++ requires that a copy constructor's parameter be a(n) ________.

a reference to the object

A(n) ________ informs the compiler that a class will be declared later in the program.

forward declaration

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

friend

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


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

World Power -Imperialism -American Diplomacy in Asia

View Set

Chapter 20 Accounting Changes and Error Corrections

View Set

Chapter 12: Some Lessons from Capital Market History

View Set

Ch. 55 Care of Patients with Stomach Disorders

View Set