Hi Folks,
Sharing my solution to the coding exercises from the book 'Practice Exams' by Bert Bates and Kathy Sierra. This solution seems fine to me, do correct me if I am wrong or if there would be a better way of coding it. Hope like minded souls would find this post useful. I will be posting my solutions to the other questions as and when I complete them. Thank you.
Question 1.h
Create a class that has a static inner class and a method local inner
class. Make instances of each inner class. Create code that accesses the
inner classes’ members from the outer class. Create code that accesses the
outer class’s members from within the inner classes.
Result:
static inner class:go
method local inner class: Value of x in outer is FootballTeam