Unnamed
public text v1 · immutableThis is the function we need to call in our pics.cpp (our main function)
void ShapeDrawer::drawLine(Line l) {
int xa = l.getStart().getX();
int ya = l.getStart().getY();
int xb = l.getEnd().getX();
int yb = l.getEnd().getY();
int red = l.getColor().getRed() ....it keeps going etc....
Line is a class.
So how do we implement this? am I making sense?