Book a Demo

Author Topic: Properties  (Read 5792 times)

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Properties
« on: October 27, 2006, 10:03:34 am »
Perhaps I am thinking too much of implementation, but ...  I am defining a class model for a class I have already written and this class uses properties, i.e., things which when referenced act like public data members (horrors!), but which have accessor methods under the skin (hurrah!).  In this particular case, none of the accessor methods have any code in them ... at least not yet ... but one of the properties is read only.

Abstracting from the implementation, it seems that I can model these as public attributes, knowing that when I get to transforming it into code that I am going to use properties instead of public data members, but how do I indicate that one of them is read only?

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Properties
« Reply #1 on: October 27, 2006, 10:13:42 am »
Never mind ... I just saw the property click get added after I added a few attributes and I see that this has the read/write options.