







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
How to determine the most specific method to apply for given arguments in object-oriented programming. It discusses the concept of method applicability, sorting methods based on method more specific, and checking classes to determine subclasses. The document also includes a sample assignment and a tutorial exercise.
Typology: Study notes
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Department of Electrical Engineering and Computer Science Structure and Interpretation of Computer Programs Sample assignment Ob jectoriented programming
Reading Section
This problem set is probably the most dicult one of the semester but paradoxically the one that asks you to write the least amount of co de and for which you should have to sp end the least time in lab provided that you prepare before you come to lab Instead of asking you to do a lot of implementation we are asking you to assume the role of language designer and to think ab out and discuss some issues in the design of languages for ob ject oriented programming Note esp ecially that there is a signi cant part of this problem set to b e completed after you have nished in the lab
This problem set has b een designed so that the interpreter you will b e dealing with is an extension of the metacircular evaluator in chapter of the b o ok The implementation b elow is describ ed with reference to the programs in the b o ok In order to understand what is going on it will b e necessary to work through section b efore starting on this assignment
Although Ob ject Oriented programming has b ecome very p opular the design of languages to sup p ort Ob ject Oriented programming is still an area of active research In this problem set you will b e dealing with issues that are not well understo o d and around which there are ma jor disagree ments among language designers The questions in this problem set will not ask you to supply right answers Instead they will ask you to make reasonable design choices and to b e able to defend these choices We hop e you will appreciate that once you have come to grips with the notion of an interpreter you are in a p osition to address ma jor issues in language design even issues that are at the forefront of current research
Tutorial exercise Do exercise of the notes Dont actually go to lab to implement this Just b e able to explain precisely what pro cedures need to b e mo di ed what new pro cedures need to b e written and what the co de must do