Tags:liskov substitution
  • Interface Segregation Principle (ISP) is the fourth principle in S.O.L.I.D. set of principles (hence the letter I) and it deals with how business logic is communicated to the client. In object-oriented world, business logic is implemented in…

  • The implementation looks ok. Birds usually eat and fly. In the distinctive case of an Ostrich we do not have the flying capability so an exception is thrown. However, the exception is unexpected for the code inside main merthod, so the program…