Chapter 14

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

D

The destructor function's return type is: a) tilde b) int c) float d) nothing; destructors have no return type. e) None of these

C

This is a special function that is called whenever a new object is created and initialized with another object's data. a) destructor b) static function c) copy constructor d) assignment function e) None of these

D

C++ requires that a copy constructor's parameter be a(n): a) integer data type b) floating point data type c) pointer variable d) reference object e) none of these

B

Class declarations are usually stored here. a) On separate disk volumes b) In their own header files c) In .cpp files, along with function definitions d) Under pseudonyms e) None of these

D

If you do not furnish one of these a default will be provided for you by the compiler. a) copy constructor b) constructor c) destructor d) All of these e) None of these

C

It is a good idea to make a copy constructor's parameters ________ by specifying the ________ keyword in the parameter list. a) inline, inline b) static, static c) constant, const d) global, global e) None of these

C

Object composition is useful for creating this type of relationship between classes. a) friend b) static c) has a d) conditional e) None of these

C

This is automatically called when an object is destroyed. a) constructor function b) specification deallocator c) destructor function d) coroner function e) None of these

A

This operator may be used to assign one object to another. a) = b) == c) <> d) @ e) None of these

C

When a class contains an instance of another class, it is known as: a) object overloading b) operator overloading c) object composition d) dynamic composition e) None of these

B

When objects contain pointers, it is a good idea to create an explicit ________ function. a) destructor b) copy constructor c) static constructor d) inline constructor e) None of these


Set pelajaran terkait

Ch.11 Leadership for a Growing Business

View Set

science electricity topics 4 and 5

View Set

Saunders Comprehensive NCLEX-PN: Ch 43 Endocrine Disorders***

View Set

Chapter 44: Digestive and Gastrointestinal Treatment Modalities

View Set

Life Insurance Policy Provisions, Options, and Riders

View Set

Les sujets du droit international public

View Set

Acid-Base Balance Practice Questions

View Set

Chapter 45: Nursing Management: Patients With Neurologic Trauma

View Set

Digital Tools 13 - Time Management: Working from Home / Digital Transformation in Practice: Virtual Collaboration Tools / LinkedIn Learning Pathway

View Set