asilbekbakhrom

asilbekbakhrom

Posted on August 3, 2022

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

💖 💪 🙅 🚩
asilbekbakhrom
asilbekbakhrom

Posted on August 3, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

Single Responsibility Principle
programming Single Responsibility Principle

April 30, 2023

SOLID
csharp SOLID

August 3, 2022