In the following code, f1 is an overloading function. In what situation will be the first called, in what situation will the second be called?
#include <iostream>
using namespace std;
class A
{
public:
void f1(){cout<<"f1 "<<endl;}
void f1() const {cout<<"f1 "<<endl;}
};
int main()
{
A a;
a.f1();
return 0;
}