Articles → .NET → Interface Segregation Principal C#
Interface Segregation Principal C#
- Old age people
- There is no relevance of car insurance for children
- There is no relevance of providing medical insurance to a serviceman because their employer has already opted the insurance for their employees (because of the government policy).
- No term insurance for old age people because according to the insurance company, maximum age should be 40.
- CarInsurance method is not relevant for Children class.
- MedicalInsurance method is not relevant for ServiceMan class.
- TermInsurance method is not relevant for OldAge class.
Interface Segregation Principle For Rescue