Coba jelasin Class lokal dari Class (élmu komputer) dalam bahasa sunda dong

When a class is declared inside a function it is called a local class. It has some unique properties like it can use global as well as static variables of the function declared before the class but can't access automatic variables. Global variables should be used with scope(::) operator.

There are some restriction on its use they can't have static data members and member functions must be defined inside the class only enclosing fuction can't access private members of the class but they can be made to do so by declaring them Friend to that local class.