1
Answer

Easy question

Mihnea

Mihnea

16y
2k
1
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)