Questions about Attributes

  • Thread starter Thread starter C.G. Oh
  • Start date Start date
C

C.G. Oh

Can anyone explain why to use Attributes instead of using just member
variables?

Which area of programming should I use them?

Thanks in advance!

C.G.
 
C.G. Oh said:
Can anyone explain why to use Attributes instead of using just member
variables?

They're very different from member variables.
Which area of programming should I use them?

Well, that entirely depends on the attribute. Many developers won't
need to write their own attributes, but most will have to use one of
the existing ones sooner or later - for instance, using serialization
or writing web services.
 
Back
Top