In both .NET and Java, the garbage collector is smart enough to detect and release circular references. Dealing with circular references in C++ isn't as simple. In the first installment of this series ...
Knowing how references really differ from pointers should help you decide when to use references and when to stick with pointers. In C++, references provide many of the same capabilities as pointers.
// C# version class Person { public Person(string name) { this.Name = name; Console.WriteLine(this.Name + " instance created."); } ~Person() { Console.WriteLine(this ...