外部类的创立形式

class 外部类{

  class 外部类{  }

}

拜访特点

  • 外部类能够间接拜访外部类
  • 外部类如果想拜访外部类的话,必须要建设外部类对象

外部类的创立

外部类名.外部类名 对象名 = new 内部类型().new 外部类型()