Answer the following questions true (T) or false (F)
1. The scope resolution operator can be used with an object to qualify a member function.
2. The dot operator is used between an object and a data member or between a calling object and a call to a member function from the class of the object.
1. False
Explanation: The scope resolution operator is used with a class name to qualify a member to tell the compiler that this member comes from that class.
2. True
Explanation: If we have object.func(arg_list) we speak of the object as the calling object for the function call func(arg_list). The dot is the operator that signals to the compiler that we intend to call that function, with data members available from the object. If the object.data_member is specified, the dot says to the compiler that we want to access the data from data_member that belongs to that particular object.
You might also like to view...
XML stands for
(A) extreme markup language (B) excessive markup language (C) extraordinary markup language (D) extensible markup language
What is a primary reason for setting up a default value?
A) Reduce data entry time B) Reduce data redundancy C) Guarantees data accuracy D) Reduce the number of options available
The macro recorder can append a previously recorded macro
Indicate whether the statement is true or false
In a Select Case structure, each ____________________ statement specifies a value for which the test expression is checked.
Fill in the blank(s) with the appropriate word(s).