What is the scope of a class nested inside another class?
Private scope
Depends on access specifier and inheritance used
Explanation: It depends on the access specifier and the type of inheritance used with the class, because if the class is inherited then the nested class can be used by subclass too, provided it’s not of private type.
Protected scope
Global scope