The Artima Developer Community
Sponsored Link

Web Buzz Forum
Scala : Accessing Trait Inner Class

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Chee Seng Chua

Posts: 62
Nickname: quai83
Registered: Nov, 2006

Chee Seng Chua is Senior Application Developer for KZEN Solutions Berhad
Scala : Accessing Trait Inner Class Posted: Feb 2, 2012 6:00 AM
Reply to this message Reply

This post originated from an RSS feed registered with Web Buzz by Chee Seng Chua.
Original Post: Scala : Accessing Trait Inner Class
Feed Title: Chee Seng Tech Blog
Feed URL: http://chuacheeseng.blogspot.com/atom.xml
Feed Description: When you think you are superior, you are being an idiot...
Latest Web Buzz Posts
Latest Web Buzz Posts by Chee Seng Chua
Latest Posts From Chee Seng Tech Blog

Advertisement
For example you have:-


package test

trait A {
  class B {

  }
}


You can use test.A#B to access class B in other class, for example:-


import test.A
type B = A#B
val b = new B

Read: Scala : Accessing Trait Inner Class

Topic: Scala : Accessing Trait Inner Class Previous Topic   Next Topic Topic: A year goes past

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use