What are two advantages to using inner classes?
What will be an ideal response?
There are two big advantages to using inner classes. First, because they are defined within
a class, they can be used to make the outer class self-contained. The second advantage is that the
inner and outer classes’ methods have access to each other’s private methods and private instance
variables.
You might also like to view...
Which of the following statements is FALSE?
A) Data cleansing is not data verification. B) Data cleansing is very costly both in time and money. C) Data cleansing is the process of fixing obvious errors in the data and converting the data into a useful format. D) Data verification is the process of validating that the data is correct and accurate.
Any statements you place within the ____ control will be performed in the order they appear, top to bottom.
A. for all B. do next C. while in order D. do in order