Class 22: Assignments: Variable model, l-values, clones

Slides

Display version (pdf).

Downloads

Homework

Reading (for next class): PLP, Sections 6.2 and 6.5

In class I made the following claims about Java: and the following claims about C++:

Exercises

  1. Write a Java program that verifies the claims above regarding Java.
  2. Write a C++ program that verifies the claims above regarding C++.

By "verifies", I mean this program should print something like "yes you are correct" if and only if ALL of the claims are true. Important: you must submit something original. I don't want to see the same example used twice.