The Class::Privacy Perl module implements object data privacy:
only the class itself can look inside its objects.