restricts method visibility where possible