10.07.2015 Views

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

Data Types & Type Checking - Ace

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Record <strong><strong>Type</strong>s</strong>• C, C++, C#: supported with the struct data type.– In C++ structures are minor variations on classes.– In C# structures are related to classes, but also quite different.• structures are allocated on the stack (value types).• class objects are allocated on the heap (reference types).– In C++ and C# structures are also used for encapsulation.• Python, Ruby: implemented as hashes.Lecture 0633

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

Saved successfully!

Ooh no, something went wrong!