We say that gravity is a conservative field, because there IS independence of path.
the potential energy of an object is mgh, mass X gravitational constant X height above ground. It does NOT matter how the object got there the result is the same.
As the object moves through this field(gravity...