Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Reference <strong><strong>Type</strong>s</strong>• C++ includes a special kind of pointer type called areference type that is used primarily for formalparameters:– Advantages of both pass-by-reference and pass-by-value.– No arithmetic on references.• Java extends C++’s reference variables and allows them toreplace pointers entirely:– References are handles to objects, rather than being addresses.• C# includes both the references of Java and the pointers ofC++.Lecture 0644