Reducing unnecessary same values in Class member variables ....

Posted by Freshblood on Stack Overflow See other posts from Stack Overflow or by Freshblood
Published on 2010-06-05T15:34:30Z Indexed on 2010/06/05 15:42 UTC
Read the original article Hit count: 208

Filed under:
|
|
|
class A
{
 public int a;
 public int c;
}

i will create 10 instances from A.Then i will create 15 instances from A again... go on. first 10 instance will have same value for a variable and next 15 instances will have again same value for a.But I don't mean that both group has same values for a .Problem is create same a value 10 times in first group and 15 times in second group on memory unnecessary.

What would be Best solution or solutions for reduce unnecessary datas in this situation?

© Stack Overflow or respective owner

Related posts about class

Related posts about common