Explain the difference in the call statement when passing an object’s address (explicitly) versus a reference to function. How are the object’s functions accessed in the called function?

What will be an ideal response?

As with any pointer and reference passing, the pointer call by reference uses the & operator with the object in the call statement. The reference call uses the object name. In the pointer function, we have to use the pointer to the object -> operator to access the public functions. In the reference function, we use the reference object and dot operator. See the Kitty example in the chapter for further reference.

Computer Science & Information Technology

You might also like to view...

Meeting project goals, tasks, and deadlines are all included in the project ________

A) resources B) scope C) milestones D) constraints

Computer Science & Information Technology

The primary editing view in PowerPoint where the user can write and design presentation is:

A) Reading view. B) Normal view. C) Notes view. D) Slide Sorter view.

Computer Science & Information Technology