Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 17. Namespaces > Open Namespaces and the use namespace Directive

17.11. Open Namespaces and the use namespace Directive

Remember the simple Items class from Example 17-1?

package {
  public class Items {
    fruit var orange:String = "Round citrus fruit";
    color var orange:String = "Color obtained by mixing red and yellow";

    public function Items () {
      trace(fruit::orange);
      trace(color::orange);
    }
  }
}


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial