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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top