KnowledgeBoat Logo

Computer Applications

Invoking a method by passing the objects of a class is termed as:

  1. Call by reference
  2. Call by value
  3. Call by method
  4. Call by constructor

User Defined Methods

ICSE 2024

3 Likes

Answer

Call by reference

Reason — When an object is passed to a method:

  1. The method receives a reference (memory address) to the original object.
  2. Any changes made inside the method affect the original object.

Answered By

2 Likes


Related Questions