Which is the definition of a line segment?
a figure formed by two rays that share a common endpoint
the set of all points in a plane that are a given distance away from a given point
a part of a line that has one endpoint and extends indefinitely in one direction
a part of a line that has two endpoints