Implement abstract encoding method within Der class.