October 25
1) Draw the class diagram showing the relationship between Polygon and Rectangle.
October 25
2) For each code snippet below:
Can the code snippet be run without error? Why or why not?
a) Polygon p1 = new Polygon(3.0, 4.0, 5.0);
b) Polygon p2 = new Rectangle(3.0, 5.0);
c) Rectangle r1 = new Polygon(3.0, 4.0);
d) Rectangle r2 = new Rectangle (3, 4, 5);
Interfaces FRQ test this Friday
Introducing Langton’s Ant project
NumberGroup Interface
Complete the FRQ in your small groups. Once done, implement in Replit.
Homework