LockClass

LockClass[class, attributes]
is automatically called if a class gets the attribute Locked. If the class has or gets the attribute Protected , LockClass redirects access to Static members and assigns the given attributes. Additionally, subclasses are saved in the DownValues of Descendants. If the class has or gets the attribute ReadProtected, VirtualMemberTable[class] is stored and encrypted together with Class[class] and ClassInformation[class, Pattern].