Summary
In this chapter, you learned how to use the out
and ref
keywords. You created a method called GetValueAndInterest
, learned about the differences between the ref
and out
keywords, and learned how to calculate principle and interest.
In the next chapter, we'll talk about two-dimensional arrays.