1//Only fields and methods are inherited.
2//Inner class can extend it's outer class.
3//... Because, even the private members of outer
4//class are available inside the inner class.
5//Even though, When an inner class extends its outer class,
6//only fields and methods are inherited but not inner class
7//itself.