What is the primary use of an implicit class in Scala 2?
-
A
To create classes that are automatically instantiated at startup
-
B
To add extension methods to an existing type
-
C
To define classes whose constructor arguments are implicit
-
D
To create singleton companion objects automatically