Invoking a method by passing the objects of a class is termed as ______.
Advertisements
Question
Invoking a method by passing the objects of a class is termed as ______.
Options
Call by reference
Call by value
Call by method
Call by constructor
MCQ
Fill in the Blanks
Advertisements
Solution
Invoking a method by passing the objects of a class is termed as Call by reference.
Explanation:
Passing an argument as an object acts as a call by reference since only one copy of the object is shared by both the caller and the called method.
shaalaa.com
Is there an error in this question or solution?
