Introduction to Programming Discussion
Answer this question after class,
Respond to the posts of a couple of your classmates.
Week Discussion
Sometimes, it's a good idea to use "pass by value," and leave the value of a variable unchanged.
Sometimes, it's a good idea to use "pass by reference," and have the called method change the value of a variable.
Can you think of an example of when "pass by reference" is a good idea?
Please be very, very specific: Give the name of the variable, the name of the method, and the type of program.
Format: The variable <name of variable> could be modified by the method <name of method> in a <type of program> program.
Example: The variable "returnOnInvestement" could be modified by the method "CalculateProfitOrLoss" in a stock portfolio program.
11 years ago
5
Answer(0)
Bids(0)
other Questions(10)
- STR 581 Week 4 Knowledge Check ~ ( Latest Syllabus - Perfect Tutorial - Score 18/18 For Sure )
- foundation of assignment
- American Revolution
- Question for Best-tutor8
- "Is Freud's theory a viable theory for this century? Provide reasons for your view. "
- Article Compilation
- Assignment 1 and 2
- Need answers
- Finance
- Learning Organizations