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.

Computer Science & Information Technology

You might also like to view...

Headings place information at the top of each printed page

Indicate whether the statement is true or false

Computer Science & Information Technology

A ________ cache stores data using main memory physical addresses.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology