Scala learning notes for complex types in Scala-44

Source: Internet
Author: User

Package Com.leegh.parameterization

Import Com.leegh.parameterization.Compound_Type

/**
* @author Guohui Li
*/

Trait Compound_type1;
Trait Compound_type2;
Class Compound_type extends Compound_type1 with compound_type2
Object Compound_type {
def compound_type (x:compound_type1 with compound_type2) = {println ("Compound Type in Global Method")}
def main (args:array[string]): Unit = {

Compound_type (new compound_type1 with Compound_type2)
Object Compound_type_object extends Compound_type1 with compound_type2
Compound_type (Compound_type_object)

Type Compound_type_alias = Compound_type1 with compound_type2
def compound_type_local (X:compound_type_alias) = println ("Compound Type in Local method")
Val compound_type_class = new Compound_type
Compound_type_local (Compound_type_class)

Type Scala = Compound_type1 with compound_type2 {def init (): Unit}
}
}

Report:

This blog description:

1. Organize your ideas and improve yourself.

2. Be educated in Liaoliang teacher, what to gain, so recommend.

3. Blog focus on practice, superfluous words are not much to say, are doing technology.

4. Information from DT Big Data Dream Factory public account: Dt_spark.?

DT Big Data Dream Factory's public number is Dt_spark, every day will have big data actual combat video release, please continue to study.

Liaoliang DT Big Data dream factory Scala all videos, PPT and code in Baidu Cloud disk link:http://pan.baidu.com/share/home?uk=4013289088#category/type=0& Qq-pf-to=pcqq.group

Liaoliang "Scala Beginner's introductory classic video course" http://edu.51cto.com/lesson/id-66538.html

Liaoliang "Scala Advanced Classic Video Course" http://edu.51cto.com/lesson/id-67139.html

Scala learning notes for complex types in Scala-44

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.