repo update

This commit is contained in:
2022-04-04 15:41:31 -05:00
parent 1156c003f9
commit 16003d1715
20 changed files with 13101 additions and 13046 deletions

27
Lecture/Week5/Lab5.txt Normal file
View File

@@ -0,0 +1,27 @@
Shape class
data:
color (required)
1st point
# points
functions:
constructor(color)? <- optional
shape::shape(...) <- do this in child?
copy constructor
assignment operator
destructor (virtual)
draw <- pure virtual
Shape::draw(Graphics context gc)
gc->setColor(color)
Shape * S1 = new Line(...)
Shape * S2 = new Triangle(...)
S1->draw(...) draw Line
S2->draw(...) draw Triangle
Image class