Chapter 8, Exercise 4
Exercise 4 in Chapter 8 instructs us to create a new property "ConvPrice" with an accessor method "get" to that accepts parameters. Later in the exercise, we're instructed to create a "LocalPrice" property whose "get" method also accepts parameters.
I'm extremely frustrated because no example in the prior chapter allowed or even alluded to the possibility of accessor methods directly accepting parameters. I can certainly figure out how to modify these properties by creating seperate class methods, but how can the accessor "get" method accept parameters directly? I've played with different possible sytaxes to accomplish this, but I'm not having any luck, and the error messages are only leaving me further confused.