Question: QUESTION 1 How can we restrict dynamic allocation of objects of a class using new? A . By making an empty private new operator. B

QUESTION 1
How can we restrict dynamic allocation of objects of a class using new?
A.
By making an empty private new operator.
B.
By making an empty private new and new[] operators
C.
By overloading new operator and new[] operators
6.25 points
QUESTION 2
Which of the following operators cannot be overloaded.
A.
:: (Scope Resolution Operator)
B.
.*(Pointer-to-member Operator)
C.
All of the above
6.25 points
QUESTION 3
Which of the following operator functions cannot be global, i.e., must be a member function.
A.
new
B.
delete
C.
Converstion Operator
6.25 points
QUESTION 4
Which of the following operator(s) cannot be overloaded?
A.
?: (Ternary or Conditional Operator )
B.
:: (Scope Resolution Operator)
C.
All of the above

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!