@ Campbell Actually I did more two programs before, named Outer, Inner where I declared & initialized Inner class object in Outer class( In declaration ) and used that object to access instance variables and members of Inner class. In second program I created an object of Inner class( named InnerClass ) in main method of Outer(named OuterClass) class and called its members so already had used those names so just to differ them from each other named like that. But yes I got your point at least here I should name them Outer & Inner.
In Identifier and method naming convention first words in small letter and if second
word comes then first letter of that word in capital.
Ex. method = void displayResult();
an identifier int maleAge(); is this correct ? I think I read it in
Java Programming Style Guide.
yes your right, it not creating an object of inner class in outside class But creating it inside an object. yes it ran successfully.
I'll make changes in above code a you guided. Thank you.