Nested types

Nested types are also called inner types.

To access nested type we have to use the outter type name.


using System;

class Rectangle{
   public class Point{
   
   }
}
class Test
{
    static void Main()
    {
        Rectangle.Point p = new Rectangle.Point();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.