10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!