Question about concept of class
I spent quite a lot of time to try to understand class but still not clear about the concept. Help me please.
1. I saw something like this:
Can the condition be written as : if (x%5!=0) ?If the answer is 'no', why?
bool class::mem_f(int x)
if (!(x%5))// means if x is not divisable by 5
2. When & why overload operators?
3. I am not sure about when to use call by reference in arguments of member functions.
When to use call by reference in class? Why use call by reference when overloading operators?Plz explain in simple English.