Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 5 Class members specified as private are accessible only to member functions of the class and friends of the class. True False QUESTION 6

QUESTION 5

Class members specified as private are accessible only to member functions of the class and friends of the class.

True

False

QUESTION 6

The Catch handle of an exception:

A. Throw the exception

B. Process the exception

C. nothing

D. quit the program

E. None of the above

QUESTION 7

Select all that apply about Exceptions.

A. Indicate that something unexpected has occurred or been detected

B. Allow a program to deal with the program in a controlled manner

C. Can be used to assn a object of a class to another object of the same class

D. Can be as simple or complex as program design requires

E. Exceptions can be declared public, private or pretected

QUESTION 8

Static data members have class scope and can be declared public, private or protected.

True

False

QUESTION 9

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

A. outperform its C language counterparts

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

C. operate on more operands than in its standard definition

D. operate on no operands

E. None of the above

QUESTION 10

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

A. parentheses ( ) operator

B. curly braces { } operator

C. square brackets [ ] operator

D. colon : : operator

E. None of the above

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Public Finance

Authors: Harvey Rosen, Ted Gayer

10th Global Edition

007715469X, 978-0077154691

Students also viewed these Databases questions