Every female dog or cat in heat shall be confined in a building or other enclosure in such a manner that such female dog or cat cannot come into contact with another animal except for planned breeding and to prevent becoming a public nuisance. An owner must have an appropriate license to breed.