Note: I didn't include all the curly braces..etc. just copy and pasted for sake of time. My question is that the comment states that EACH instance of Coffee has an enum?? In this code (straight from the book), I only see the BIG and OVERWHELMING referenced here or whatever it's called..lol Where is HUGE??
Shouldn't HUGE be included as follows:
**OR rather, HUGE should be drink2 and OVERWHELMING drink3.
ohhhh ok!! Now that I understand! So, because of the value method, it will return all of the enums based on their constructors (returns the function itself) and then for viewing them on screen you would invoke them in the println statement?
Sorry about the vocab...I can't seem to get into my brain the terminology...invoke, call, instantiate, declare..etc etc. haha I know in my head what or why (in most cases) just not how to correctly term it. Kind of my abstract way of understanding and hard to put into words.