reffering to inner class outside the scope

Discussion in 'JavaScript' started by Dhingcha, Aug 16, 2008.

  1. #1
    Suppose declare the inner class as
    
    class outer {
    //.....
    class inner {
    //...............
    }
    } 
    Code (markup):
    then is it valid to declare the an instance of inner outside outer( e.g. in main finction) by the code:

    outer.inner oi1 = new outer.inner(); 
    Code (markup):
     
    Dhingcha, Aug 16, 2008 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,828
    Likes Received:
    4,541
    Best Answers:
    123
    Trophy Points:
    665
    #2
    Are we talking java or javascript because you have posted in the javascript section.
     
    sarahk, Aug 18, 2008 IP