I am currently reading a book on objective-c , and I am on the concept of "Setters" and "Getters". The book states that a setter is something that sets the value of instance variable (which I understand), it also says that a getter is something that retrieves the value of on an instance variable. Where I get stuck is that the example which was working with fractions, was that the methods that outputted the numerator and denominator were the getters, which I don't understand because, you're not retrieving any values, you're outputting it. I am pretty confused, I'm hoping that somebody could try and help explain it to me.
Thanks,
John.
Thanks,
John.