DEV Community

asilbekbakhrom
asilbekbakhrom

Posted on • Updated on

SOLID

Image description
SOLID besh qisimdan iborat:
S - Yagona javobgarlik printsipi
O - Ochish-yopish printsipi
L - Liskov almashtirish printsipi
I - Interfeysni ajratish printsipi
D - Bog'liqlik inversiyasi printsipi

Image description

S

"Class faqat bitta ma'suliyatga ega bo'lishi kerak."

Image description

O

"Dastur ob'ektlari kengaytirish uchun ochiq, lekin o'zgartirish uchun yopiq bo'lishi kerak"

Image description

L

"Liskov almashtirish printsipi ota class ob'ektlari dasturni buzmasdan uning bola class ob'ektlari bilan almashtirilishi kerakligini aytadi."

Image description

I

"Ko'pgina mijozga xos interfeyslar bitta umumiy maqsadli interfeysdan yaxshiroqdir."

Image description

D

"Classlar classdan emas abstrakt class yoki interface bilan ulash kerak"

Image description

Top comments (0)