access code field in inherited classes