XYZ Interview Question

How does inheritance affect the interaction with db