creating Objects

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hasithain
    New Member
    • Sep 2008
    • 2

    creating Objects

    Hi, What i want to do is in my programme, I'm creating a array, that array is having some company values. then according to the values i classify the array. then I want to give those company (some ranks, star points, and like state leval).
    So (Actually the case is like this assume, have 100 companys. I catogorise them in to 5 groups according to their marks. Then i want to assign them some ranks and some points like that). pl help me how can i do so.

    Hasitha
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    It could be done a number of ways...
    A dictionary<stri ng,int> with the name and rank...
    An object/class with properties of string CoName and int CoRank.
    Any other form of 2d array.

    Personally I like the object with properties because you can always add more properties later ranging from web URL to category, industry and so on.

    Comment

    Working...