After making the appropriate backup, since a class is a table, you can remove the information contained in the "methods" field, since this is only the visual interpretation, and in runtime VFP uses the information contained in the objCode field.
use mylibrary
update alias() set methods =''
use in (mylibrary)
>How can i prevent users see my code in the class?