InterviewSolution
Saved Bookmarks
| 1. |
Which among the following is the main advantage of using local classes?(a) Make program more efficient(b) Makes program execution faster(c) Helps to add extra functionality to a function(d) Helps to add more members to a function |
|
Answer» The correct option is (c) Helps to add extra functionality to a function Easy explanation - The closest answer is to add more functionalities to a function or to make some specific functions to be generic. Adding more members to a function can be done directly but to add some special functionality that are encapsulated, can be done using local classes. |
|