You are on page 1of 41

‫التماسك‬

‫هو أكثر حول املكونات ‪ ،‬حول تجميع الفئات التي تعمل في نفس املجال‪.‬‬

‫االقتران ‪ -‬الترابط‬

‫هو درجة االعتماد املتبادل بني وحدات البرامج‪.‬‬


‫ بس منقدر نضيف عليه‬،‫منقدرش نعدله وال نقيم ونغير شغالت‬

for eg. we have function which calculates the salary of a worker; u basically cannot edit this function or change sth in it,
if u need to change a certain thing like adding the details of the salary, u have to create another function which contains
the details of the salary and connect it to it.
‫نعامه‬

Liskov Substitution Principle (LSP) states that objects of a superclass should be replaceable with objects of its
subclasses without breaking the application.

In other words, what we want is to have the objects of our subclasses behaving
the same way as the objects of our superclass.
‫من ينطبق عليه ذلك؟‬
unified modeling language
who

does

why
‫‪interface‬‬

‫حتى لو الكالس مش جزء من كالس تاني‪ ،‬اذا غيرنا في االول اشي راح ياثر ع التاني‬

‫تابع الى‬
‫بس مش جزء من‬
describes

interactions

‫متزامن‬

‫غير متزامن‬
‫منع إنشاء اكثر من كائن واحد‬
otherwise

‫للتقديم‬

private

‫سيكون متاحا‬

private
we wanna create object without allowing to see how we created them

its just responsible of making


objects as requested

You might also like