(?)
Quotes are added by the Goodreads community and are not verified by Goodreads. (Learn more)

“When a singleton object shares the same name with a class, it is called that class's companion object. You must define both the class and its companion object in the same source file. The class is called the companion class of the singleton object. A class and its companion object can access each other's private members.”

Martin Odersky, Programming in Scala
Read more quotes from Martin Odersky


Share this quote:
Share on Twitter

Friends Who Liked This Quote

To see what your friends thought of this quote, please sign up!

0 likes
All Members Who Liked This Quote

None yet!


This Quote Is From

Programming in Scala Programming in Scala by Martin Odersky
1,663 ratings, average rating, 100 reviews

Browse By Tag