What does 'polymorphism' mean in object-oriented programming?
-
A
A class can only have one constructor
-
B
Objects of different types can be treated through a shared interface, with each responding differently
-
C
Two classes cannot share the same method name
-
D
A method must always return a value