Object & Ref
We cannot create an object of class a,but we create an reference varable of class a.What is meaning of this.
Bcoz we ctrate an obj using
Class a = new Class();
& create an reference using
Class a;
a=new Class();
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.
Danatas GerviPosted Sep 9, 2009, 3:15 AM
Read about difference between Value types (int, double, any struct) and Reference types.
Stack exist in .NET, but you cannot create ref type in stack – and using new operator causes creation of instance (object) in heap.