package com.jxd;
public class Test
{
void print()
{
System.out.println("helle,java!");
}
class TestChild
{
void print()
{
System.out.println("helle,idea!");
}
}
public static void main(String[] args)
{
Test aa = new Test();
aa.print();
Test.TestChild aaa = new Test().new TestChild();
aaa.print();
}
}
关注
笔者 - jxd
微信公众号搜索 “码农总动员” 或 微信扫描下方二维码,了解更多你不知道的XX,O(∩_∩)O