cforster / theme-park-project

An assignment about theme park queues
0 stars 11 forks source link

Why are some ints named in all caps? #36

Closed zlehmanludwig closed 10 years ago

zlehmanludwig commented 10 years ago

Some ints like APPEAL, RIDELENGTH, and RIDERS in Ride.java are named in all caps. Why? They're all tagged as "attributes."

cforster commented 10 years ago

yeah, those are properties of the object to which they are assigned, so I made them all caps to represent that they are essentially constants. The convention is for constants to be all caps. That said, this is probably not totally right, and it would be OK if you changed it.