WRIGHT STATE UNIVERSITY
Department of Computer Science
CS 7100 Fall
(NOT GRADED - Plan to complete by: November 22)
Object-Oriented languages frequently
allow overloading of
methods. This feature allows a class
to have multiple methods of the
same name, provided they have
signature is typically the method
name plus the types of its
parameters. Since we do not have
types in our current language, we
might overload based simply on the
method name and number of
parameters. For example, a class
might have two initialize methods, one with no parameters for use
when initialization with
a default field value is desired,
and another with one parameter
for use when a particular field
value is desired.
Extend the Interpreter for OOPL
modifying the interpreter code in myOOPLInterp.scm
to allow overloading based on the
number of method parameters.
What to develop?
Create a well-tested solution in a file named myOverload.rkt.
In order to better grasp the changes you made, comment out the
code you are modifying rather than deleting it. Include test
calls and outcomes in your solution so as to make it clear
that you are exercising the necessary constructs.