From big Data rookie to Master's journey Scala Nineth lecture a inner class

Source: Internet
Author: User

The Scala inner class is purely an object instance of the class as follows:

Class out (Val outname:string) {

Val outName2 = "I ' m outName2"
Out =>class Inner (Val innername:string)
{
Defsayhello (Inner:inner)
{
println ("Outname is" +out.outname+ "," + "--and--" +out.outname2+ "Innername" +inner.innername)
}
}
}

Object Testinnerclass {
def main (args:array[string])
{
Val out =new out ("Myoutname")
Val Inner =new out. Inner ("Myinnername")

println (Inner.sayhello (inner))
}
}

Now is the best opportunity to learn big data, do not spend a penny can become big Data master, achieve 500,000 annual salary dream.

Liaoliang's first Chinese Dream: Free for the whole society to train 1 million outstanding big data practitioners!

If you are interested please click on this link to go to Big data learning

Http://blog.sina.com.cn/s/blog_8fbd39ee0102vto3.html

If you do feel that video tutorials are helpful, you can donate big data, Internet +, online, Industry 4.0, micro-marketing, mobile internet and other free combat courses through Liaoliang Teacher's number 18610086859

You can also focus on the DT Big Data dream factory through the following two-dimensional code



From big Data rookie to Master's journey Scala Nineth lecture a inner class

Related Article

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.