SOLID principles in swift
SOLID represents 5 five design principles intended to make object-oriented designs more understandable, flexible, and maintainable. Let’s discuss one by one 1. Single Responsibility Principle Every class should have only one responsibilityExample: In below example class UserProfileManager is single responsibility class which has getUserProfile function 2.Open/Closed Principle Software entities such as classes, modules, and functions should be open for […]
SOLID principles in swift Read More »