consider the following class definition: class Test { public : void show (void) {cout <<”Test”;} }; If x is an object of Test and ptr is a pointer to x, then which one of the following statements can correctly invoke the function show ( )?
- x.show ( ) ;
- ptr -> show ( ) ;y
- (*ptr). show ( );
- all the three
Answer:
Option d: all the three
Explanation Here
0 Comments