Book a Demo

Author Topic: Class Diagrams: Property without an Attribute?  (Read 2211 times)

edhalsim

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Class Diagrams: Property without an Attribute?
« on: October 20, 2006, 10:08:22 am »
Please excuse me if this is a beginner question, but can I model a property (as in C#) for a class without having an associated attribute?  Would that be against the rules of UML?  I can model what I was as a method, but then when I generate code I won't get what I want.

Thanks.
- Ed.

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8626
  • Karma: +259/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Class Diagrams: Property without an Attribute?
« Reply #1 on: October 20, 2006, 03:46:45 pm »
Hi Ed,

Short answer is NO, but search the forum for "C# Property" and "Property Redux" for more information.

Any more questions, have a search then ask away...

HTH,
Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!