A Nested class is a class declared within the scope of another class. A Local class is declared within a function definition .
A Nested class is a class declared within the scope of another class. A Local class is declared within a function definition .