As I learned the main OOP concept which maps to single responsibility principle is abstraction but let's say we have a completed software and some new requirements are needed so we can extend the existing classes without affecting them or adding new responsibilities to them (which is inheritance).So can we state that inheritance also maps and helps to the single responsibility principle. Please help me to clarify this argument.
Aucun commentaire:
Enregistrer un commentaire