Question: what is the difference between a class and a type?
Answer: A class therefore is a subset of types. Classes are used as templates to create instances of objects. Classes can contain a set of properties or methods which an object is associated with. A type on the other hand is a mere description of data to be used.