010-scala A case study of a single object and associated object
Scala Singleton object in detail the last line of the function is the return value Subproject Scala companion object code The private member of the object can be accessed directly by the class companion class, but cannot be accessed by other classes or objects by the associated class to access the associated object's members. To access a method that calls some elements by name. When the initialization is created, for example: Array (1,2,,34,5,6) actually calls its apply () method
Welcome to the vast number of enthusiasts to learn and exchange. Also welcome to join the study enthusiasts
DT Big Data Dream Factory Exchange Group: 462923555
DT Big Data public account: Dt_spark
Video Watch Links
http://www.tudou.com/plcover/Yy5F5gsurSE/
010-scala single-Case object, the associated object of actual combat detailed