But after looking the code, I feel that maybe it's better to define an interface(contains all virtual methods, such as install, remove, search), and then each package manager to implement this interface.
So, only need to compare the package name once, and choose the right inherited class, and call the related method.
I like this project's idea.
But after looking the code, I feel that maybe it's better to define an interface(contains all virtual methods, such as install, remove, search), and then each package manager to implement this interface.
So, only need to compare the package name once, and choose the right inherited class, and call the related method.