Subject to any other provisions of law of this state applying to the particular class of corporation or line of activity, a corporation may be formed under this part for any public or charitable purposes.