Programming Languages and Compilers

 

Lecture 12

 

In this lecture we will look at data abstraction and object oriented features.

 

The slides for this lecture can be found here and here.

 

Literature

 

Sebesta, chapter 11 and 12.

Watt and Brown, section 6.7

Exercises

 

Exercises for lecture 12 will be done from 12.30 till 14.15 before Lecture 13 on Thursday the 15th of April.

 

 

The following exercises are best done as group discussions:

 

  1. Sebesta, review questions, 3, 11, 13, 14, 17, page 454-455.
  2. Sebesta, problem set, exercise 2, page 455.
  3. Sebesta, review questions, 2, 3, 14, 15, 21, 22, 23, 30, 31, page 492-493
  4. Sebesta, problem set, 1, 2, 4, 6, page 493-494.

 

You should limit the discussion to about 5 minutes per question.

 

The following exercises you may prefer to do on your own or in pairs and discuss the outcome with your group:

 

  1. Watt and Brown exercises 6.24, 6.25, 6.26
  2. Sebesta, programming exercises 6, page 456, in addition to the languages suggested, also consider SML.
  3. Sebesta, programming exercises 1, page 494.