1. Why do we need classes, why can’t we just use structs?
Because Classes allow you to use it as, not only data type but, also as, a function.
2. What are methods?
It is a function inside of a class, Aka member function. Can be defined inside or outside the class.
3. How would you define a class?
//Name the class name, it should use a capital letter in doing so.
class ClassName
{
//list the variables, functions and methods.
public:
memberVariable;
memberFunction;
}
4. What is an object?
It is a instantiation of a class.