Not everything is an object. Only those things declared with 'class' or 'struct', or that are of a type that was declared with 'class' or 'struct'.
// NOT a class:
// IS a class:
int main() // not a class
DoSometing(); // not a class
ctds.DoSomething(); // IS a class member
that s what i learned since i saw in many examles programmers using a function main whithout any class
asking for any explication please :confused:
Object is a variable of type class.
Class is a type. Like structures and unions, class is a user defined data type.
Objects are variables of type Class. You can create n-number of objets(variables) of type class.