Extracting the commonalties
Obviously, having a volume and a surface is common to all bodies. In general, they share a lot of properties, in fact, all cubes, cylinders, cones, pyramids, spheres, ellipsoids, and so on, are bodies.
Let’s extract the commonalties so that we treat different entities with common properties the same.
What we achieve is polymorphism, what we use here is called inheritance.