58.2k views
0 votes
Create a class, CallClass, with two methods to show call by value and call by reference. One method has two parameters that are any primitive types, whereas the other has a parameter that is an object of any class. Create a CallClassTest class that calls the two methods with proper arguments to show call by value and call by reference. You do not need to read the values of parameters from the screen. (5 pts)

User VzR
by
3.5k points

1 Answer

3 votes

Answer:

The output file is given below.

Step-by-step explanation:

Please visit gotit-pro.com to get complete working code.

Create a class, CallClass, with two methods to show call by value and call by reference-example-1
User ZeDalaye
by
3.5k points