if i make second object of it then the second object have its own memory.....?
How much class object occupy memory in heap..?
How much class object occupy space in heap...............?
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Krishna GaradRank #191 · 12.8K reputationPosted Feb 10, 2011, 2:13 AM EST
Suthish NairRank #92 · 22.8K reputationPosted Feb 10, 2011, 3:16 AM EST
Sam HobbsRank #107 · 20.5K reputationPosted Feb 10, 2011, 6:44 PM EST
Also, the phrase "make second object" is vague. It depends on what you mean. Am I correct that a class object is a reference type? I apologize if I am confused. If you make a copy of a reference type, then only the reference gets copied, correct? So it depends on what you mean by "make second object".