-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlecture_1.py
More file actions
30 lines (19 loc) · 868 Bytes
/
lecture_1.py
File metadata and controls
30 lines (19 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# SOLID
# S : single responsibilty
# O : open close principle
# L : Lescov's principle
# I : Interface segrigation
# D : Dependency inversion principle
# Every code unit (class/method/packages) only single responsibilty to take care
# Only one reason to change
# ways to figure out breaking of single rule principal
# # too many if else
# Open close principle : open for extension but close for modification
# extenstion : adding new feature
# modification : modifying the feature
# Lescov's principle
# what ever is the child class it can replace parent class with out breaking behaviour
# you should not write method which does not support
# Interface segrigation
# Single responsibility of abstract classes or inter faces
# No Two concrete Implement tation should be directly dependent on each other Instead They Should be dependent via abstract classes