A lactam (the noun is a grammatical blend from lactone + amide) is a cyclic amide. Prefixes may indicate the ring size: beta-lactam (4-membered), gamma-lactam (5-membered), delta-lactam (6-membered ring). That order in the nomenclature is because beta β, gamma γ and delta δ are the second, third and fourth letters in the alphabetical order of the Greek alphabet.