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.

Record <strong><strong>Type</strong>s</strong>• A record is a possibly heterogeneous aggregate of dataelements in which the individual elements are identified bynames.• A record type in Ada:type Emp_Rec_<strong>Type</strong> is recordFirst: String (1..20);Mid: String (1..10);Last: String (1..20);Hourly_Rate: Float;end record;Emp_Rec: Emp_Rec_<strong>Type</strong>;Lecture 0632

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

Saved successfully!

Ooh no, something went wrong!