How to use Interrupt inside class

I want to read 10 rotary encoder, but the libraries I found can't seems do that

I hope it can not only read rotary encoder , but also transfer data to the computer