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...............?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Feb 10, 2011, 11:44 PM
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".
Suthish NairPosted Feb 10, 2011, 8:16 AM
Krishna GaradPosted Feb 10, 2011, 7:13 AM