Mihnea

Mihnea

  • NA
  • 1
  • 0

Easy question

Aug 6 2008 2:17 PM
I have been learning C# this past summer, and though I have a pretty good understanding of the language, I came to a realization today. How is a statement such as :

Person x = new Person(); any different from a C++ equivalent statement.

What I mean by this is, isnt x essentially a pointer? Because the 'contents' of x are on the heap. How is it any different? Would someone mind clearing this up!

Thanks!

Answers (1)