what is the difference in the 2?
class Log
{
private:
// no members attributes
public:
void createLog( );
};
int main()
{
Log log1;
log1.createLog();
}
class Log
{
private: // no members
public:
static void createLog( );
};
int main()
{
Log::createLog();
}