Today "DT Big Data DreamWorks Video", 58th Lecture: Scala Abstract types actual combat detailed
Tudou: http://www.tudou.com/programs/view/E5QGmPvfupc/
Baidu Cloud Disk: http://pan.baidu.com/s/1bnc1skv
(DT Big Data Dream factory Scala all videos, PPT and code in Baidu Cloud Disk link address: http://pan.baidu.com/share/home?uk=4013289088&view=share#category/ Type=0&qq-pf-to=pcqq.group
In this section, teacher Wang speaks abstract types. First there is a trait T, which defines the abstract type a<:serializable, (the type a must be Serializable), B, and a method R, the parameter is a, and the return value is B. But they do not specify what type they are. In the implementation class C of T, A is defined as string,b and StringBuffer, and R is implemented. You can create a new C object and call the R method.
DT Big Data Dream factory 58th talk