In mathematics, what defines a curve?
A. A straight line connecting two points
B. A continuous and smooth mathematical object
C. A closed geometric shape with no endpoints
D. A set of ordered pairs plotted on a coordinate plane