What kind of compound is sugar?

All monosaccharides, disaccharides, and trisaccharides are carbohydrates called sugars.