Which among the following is the correct advantage/disadvantage of nested classes?

Which among the following is the correct advantage/disadvantage of nested classes?
A. Makes the code more complex
B. Makes the code unreadable
C. Makes the code efficient and readable
D. Makes the code multithreaded
 
Answer: c
Explanation: The use of nested classes makes the code more streamed towards a single concept. This allows to group the most similar and related classes together and makes it even more efficient and readable.
 

Tìm kiếm

Back
Top