Grokking SOLID Design Principles
Vote

0% completed

Common Questions About SOLID

These come up often enough to be worth preparing. Each answer below is short on purpose. In a real round you give the short version first, then expand if the interviewer asks.

1. What is the difference between SRP and ISP?

They are close, and the difference is who each one protects.

  • SRP protects the class. It asks whether this class has more than one reason to change. You are looking at the code that does the work.
  • ISP protects the caller. It asks whether a caller is forced to depend on methods it never uses. You are looking at the boundary between two pieces of code

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%