Assume that t is an object of class Test, which has member functions a() , b() , c() and d() . If the functions a() , b() and c() all return references to an object of class Test (using the dereferenced this pointer) and function d() returns void, which of the following statements will not produce a syntax error:
A) t.a() .b() .d() ;
B) a() .b() .t;
C) t.d() .c() ;
D) t.a() .t.d() ;
Correct Answer:
Verified
Q17: Which of the following is not true
Q18: Which of the following preprocessor directives does
Q19: If a member function of a class
Q20: Utility functions:
A) Are private member functions that
Q21: The code fragment: Increment::Increment(int c, int i)
:
Q23: When composition (one object having another object
Q24: Static data members of a certain class:
A)
Q25: A client changing the values of private
Q26: If Americans are objects of the same
Q27: The assignment operator (=) can be used
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents