📜  内部类是否被继承 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:20.183000             🧑  作者: Mango

代码示例1
//Only fields and methods are inherited. 
//Inner class can extend it's outer class. 
//... Because, even the private members of outer 
//class are available inside the inner class. 
//Even though, When an inner class extends its outer class, 
//only fields and methods are inherited but not inner class 
//itself.