Records
A record is a block of contiguous storage whose parts ( fields) have names and individual types.
Pascal:
type person = record name: alfa; age: integer; sex: (male, female); salary: real end;
C++:
typedef struct person { char name[16]; int age; int sex; float salary;} *PERSON;
Java: a class specifies a record as well as methods.
class Person { public String name; public long age; public Sex sex; public double salary; }
Contents    Page-10    Prev    Next    Page+10    Index