"Hi, Amigo! How about a few helpful lessons and video tacked on for good measure?"
"Professor, that's not like you... But I'm all for it!"
"Excellent! Then here are your additional sources for today.
Enum. Practical examples. Adding constructors and methods.
One of the main advantages of OOP is that it makes it easy to model entities from the real world. But some real-world entities have a strictly limited range of values. For example, there are 4 seasons in the year, 7 notes in music, and 12 months in a year. An ordinary Java class cannot model and observe the rules of such entities. But the Enum class can.
GO TO FULL VERSION