In geometry, which of the following best describes a line segment?
A) A line that extends indefinitely in both directions
B) A straight path of points that has a definite length
C) A closed figure with three sides
D) A figure formed by two rays with a common endpoint