34

In a class diagram, each class contains methods and attributes. What's the correct word for describing both of them besides something generic such as contents or items?

Context:

The Orange class extends the Fruit class and inherits its stuff.

where stuff = a single word for both methods and attributes

  • "Properties" might also be reasonable, but that is often used for specific kinds of members. – Sean McMillan Oct 6 '11 at 14:05
85

The word you're looking for is "members". Typically they are referred to as "class members".

The Orange class extends the Fruit class and inherits its members.

| improve this answer | |
  • That's it! Muchas gracias! – Jay Wick Oct 6 '11 at 4:33
  • 12
    Holy popular batman! This is my new high score of an answer, and I didn't even spend 30 seconds writing it out. – zzzzBov Oct 6 '11 at 4:35
  • @zzzzBov You were tweeted by StackProgrammer twitter.com/#!/StackProgrammer/status/121797550570352640 – Phil Brown Oct 6 '11 at 4:47
  • @zzzzBov good for u :0 – Louis Rhys Oct 6 '11 at 5:24
  • 1
    @dodgy_coder: Yep "member variable" is often abbreviated to member. Which is fine... I guess. – Coyote Oct 6 '11 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.