dependency inversion simple example Example: Dependency inversion public String getData(int id) throws InvalidRecordException