Sequential electrolytic and nonelectrolytic, or nonelectrolytic and electrolytic coating from the same bath