Polymorphism using dynamic linking (dlopen, dlsym and dlclose)