how to use non static member function within a class with attach interrupt?

I really need help

Suppose that you create multiple instances of your Encoder class. An external interrupt happens. Which instance of your class cares?

When you can answer that question, writing the code is trivial.

There are several possible answers. How you write the code depends on YOUR answer.