The SOLID principles are a set of design guidelines for object-oriented software development. They were…