A drug class, also known as a pharmacological class or therapeutic class, is a grouping of medications that share similar…