Carefully distinguish between the scope resolution operator, and the dot operator.

What will be an ideal response?


Both the dot operator and the scope resolution operator are used with data and function member names of a class or struct to specify of what class/struct the member name is a member. The dot operator is used with an object to qualify a data member name or with a call to function member. The scope resolution operator is used with the definition of member function to tell the compiler that this function is the one declared in the specified class.

Computer Science & Information Technology

You might also like to view...

The practice of data hiding serves which of the following purposes:

a. it enhances the security of the object’s data b. it makes the interface cleaner c. it keeps the attributes of an object separate from the object’s methods d. all of the above are purposes of data hiding

Computer Science & Information Technology

Using the protected keyword also gives a member:

a. public access. b. package access. c. private access. d. block scope.

Computer Science & Information Technology

Write suitable ARM code to implement

if x = y call PQR else call ZXY

Computer Science & Information Technology

Which layer of the OSI model adds source and destination MAC addresses to frames?

A. Network B. Data Link C. Transport D. Presentation

Computer Science & Information Technology