Minors and persons of unsound mind have only such capacity as is specified in statutes relating to such persons.