he option on e-commerce websites to make payments using credit, UPI, debit, COD and others is an example of?
a.
Interface segregation
b.
Open Closed Principle
c.
Dependency Inversion Principle
d.
Single responsibility
Answers
Answered by
6
Answer:
The correct answer is: Interface segregation
Explanation:
That's my test feedback
Answered by
2
The correct answer is OPTION A: Interface Segregation.
- This principle, which is similar to the principle of single responsibility, is the first in SOLID to apply to Interfaces rather than classes.
- It adds, "Do not force any client to implement an interface that they do not need."
- The main goal is to avoid using huge interfaces in favor of a large number of small client-specific interfaces.
- Many client interfaces should be preferred to a single general interface, and each interface should be responsible for something specific.
Similar questions