Area: 12
Comments:
The file rect.c
is like an object of object oriented programming.
It can be thought of as a "rectangle object."
Its static
variables are similar to the private
instance variables of an object.
The functions in the file are like the methods of an object.
The set
and get
functions are like the "setter" and "getter" methods
of an object.
However, there can only be one "rectangle object" per program with this style of programming.