The Lounge is rated PG. If you're about to post something you wouldn't want your
kid sister to read then don't post it. No flame wars, no abusive conduct, no programming
questions and please don't post ads.
Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson
You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
Apparently they are really good at using a certain UNIX editor, they are VI-kings!
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
property, attribute are mostly interchangeable AFAIK
disagree, it's contextually dependent.
Example: a yellow banana
property: banana - it can not be anything else (excluding if destroyed)
attribute: color: yellow - the color of the banana can change - left alone will become brown, black, slime, destroyed
but the color itself (not color of the banana) is a property. yellow is yellow, it can be no other.
Only if the only thing you are going to do with fruit is classify them. If fruits have behavior, then banana is a derived class of fruit, and color is an attribute of banana. Your solution isn't very object oriented.