A student enrolled in a class offered by a community college district that is not eligible for state apportionments may be required by the governing board of the district maintaining the class to pay a fee for the class. The total revenues derived from the fee shall not exceed the estimated cost of all of these classes maintained.