Is it possible to leave the interface public and the code private?

Is it possible to leave the interface public and the code private?