Definition of Member inner class: If we define a class in another class just as a member like variable and functions of those classes, then we call such a class as member inner class Example: Class outer1 { Int x; Class Inner1 { Int I; Public void fun In () { System. Out. Prinln(“ inside…