Can the object type of an argument in the call to a method be difference from the object type of the corresponding formal parameter? Explain.

What will be an ideal response?

Yes, the two object types can be different. The object type of an argument in a call to a method can be a subclass of the corresponding formal parameter’s object type.

Computer Science & Information Technology

You might also like to view...

The temporary storage area for items cut or copied within Microsoft Office is known as the ________

Fill in the blank(s) with correct word

Computer Science & Information Technology

The border to the right of a column is the ____.

A. column boundary B. table resize handle C. row boundary D. table boundary

Computer Science & Information Technology