Using classes in shared libraries

Is there anyway I can use some classes inside of a shared library?