Implement Adapter DP with inheritance.