-
Notifications
You must be signed in to change notification settings - Fork 0
/
OOP
10 lines (10 loc) · 1.13 KB
/
OOP
1
2
3
4
5
6
7
8
9
10
OOP 4 ga bo'linadi
1.Inkapsulatsiya
2.Nasileniya
3.Poliformizim
4.Abstraktsiya
Inkapsulatsiya - Bu malumotlarni chegaralash; bunda privet protected public internal protected internal ishlatiladi
Nasledviniya - Bu takror kodni yozishga yechim;
Polimarfizm - prergruzka metodov;
Abstraktsiya -описывается левым и верхним правым изображениями кошки. Хирург и старушка разработали (или визуализировали) животное по-разному. Таким же образом, вы должны поместить различные функции в класс Cat, в зависимости от потребности приложения. У каждого кота есть печень, мочевой пузырь, сердце и легкие, но если вам нужно, чтобы ваша кошка только "мурлыкала", вы отрисуете свою прикладную кошку на дизайн сверху-слева, а не на верхний правый
Delegate- biron bir metotga korsatkich bolgan maxsus klassga aytiladi