I set the pointer to class to nullptr but when I access member function is still works
class A{
public :
    void f1(){std::cout << "Hello, World!" << std::endl;};
    virtual void f2(){std::cout << "Hello, World!" << std::endl;}
};
int main() {
    A* a = nullptr;
    a->f1();
    a->f2();
    return 0;
}
