To process graphics with object-oriented thinking, you first need a graphics class. This graphics class needs to have the properties and methods common to all graphics
In this way, other graphics can directly inherit it, reducing the code complexity Redundant, in line with object-oriented thinking,
provides a unified template for the following subclasses to write code by privatizing its attributes and abstracting methods