First page Back Continue Last page Graphics
Indirection using POP
enum and struct are Procedure Oriented way of storing organized data. Functions are written around them to handle and process this data.
enum ShapeType(kCircle, kRectangle, kOblateSpheroid)
enum ShapeColor(kRedColor,kGreenColor,kBlueColor)
struct ShapeRect(x, y, width, height)
struct Shape(type, color, bounds)