I am learnign c++ & I am confused as why or when I would use a struct, class or enumeration
In laymans terms how would you describe what a Struct is, what a Class is & what a enumeration is? When I say what are they I mean what are they used for?
Would it be correct to say that a struct is a group of variables of differents type?
And a Class is a group of functions of a different type?
What is the usefulness of these...things? For example, I would say the usefulness of a bool function would be when I am testing whether an outcome is true or false & a double function is useful when I need to return a value that may sometimes be a whole number & sometimes a fractional.
So in what real life scenarios are structs, Classes & enumerations used?