Oops(object & reference)
What is diff between
Class c=new Class(); //Create object
and
Class c;
c=new Class(); //create reference variable
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ben25 reputationPosted Sep 8, 2009, 10:31 AM EDT
Read the "Value and Reference Types" part, it will answer your question and more.