2⃣ Composition
The relationship between the whole and the part, but the whole and the part cannot be separated .
The combination relationship represents the relationship between the whole and part of the class, and the overall and part have a consistent lifetime. Once the overall object does not exist, some of the objects will not exist, and they will all die in the same life.For example, a person is composed of a head and a body.
ملخص الكلام ان العلاقة تكون مابين الاوبجيكت والثاني قوية بحيث اذا انتهى الاول ينتهى الثاني معه لذلك يسموها علاقة جزء من كل
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
The relationship between the whole and the part, but the whole and the part cannot be separated .
The combination relationship represents the relationship between the whole and part of the class, and the overall and part have a consistent lifetime. Once the overall object does not exist, some of the objects will not exist, and they will all die in the same life.For example, a person is composed of a head and a body.
ملخص الكلام ان العلاقة تكون مابين الاوبجيكت والثاني قوية بحيث اذا انتهى الاول ينتهى الثاني معه لذلك يسموها علاقة جزء من كل
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
👍2❤🔥1
3⃣ Aggregation
The relationship between the whole and part, and the whole and part can be separated.
Aggregate relations also represent the relationship between the whole and part of the class, member objects are part of the overall object, but the member object can exist independently from the overall object.
For example, bus drivers and work clothes and hats are part of the overall relationship, but they can be separated. Work clothes and hats can be worn on other drivers. Bus drivers can also wear other work clothes and hats.
بمعنى أن كل اوبجيكت مستقل عن الاخر فقط يتم الاستفاده من اوبجيكت معين في لفتره محدوده وذا انتهى الاوبجيكت الاول يبقى الثاني كما هو ولا يتأثر اي ان هذه العلاقة عكس ال composition تماما
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
The relationship between the whole and part, and the whole and part can be separated.
Aggregate relations also represent the relationship between the whole and part of the class, member objects are part of the overall object, but the member object can exist independently from the overall object.
For example, bus drivers and work clothes and hats are part of the overall relationship, but they can be separated. Work clothes and hats can be worn on other drivers. Bus drivers can also wear other work clothes and hats.
بمعنى أن كل اوبجيكت مستقل عن الاخر فقط يتم الاستفاده من اوبجيكت معين في لفتره محدوده وذا انتهى الاوبجيكت الاول يبقى الثاني كما هو ولا يتأثر اي ان هذه العلاقة عكس ال composition تماما
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
❤🔥1
4⃣ Association
Indicates that a property of a class holds a reference to an instance (or instances) of another class .
Association is the most commonly used relationship between a class and a class, which means that there is a connection between one type of object and another type of object. Combinations and aggregations also belong to associative relations , but relations between classes of affiliations are weaker than the other two.
There are four kinds of associations : two-way associations , one-way associations , self-association , and multiple-number associations .
For example: cars and drivers, one car corresponds to a particular driver, and one driver can drive multiple cars.
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
Indicates that a property of a class holds a reference to an instance (or instances) of another class .
Association is the most commonly used relationship between a class and a class, which means that there is a connection between one type of object and another type of object. Combinations and aggregations also belong to associative relations , but relations between classes of affiliations are weaker than the other two.
There are four kinds of associations : two-way associations , one-way associations , self-association , and multiple-number associations .
For example: cars and drivers, one car corresponds to a particular driver, and one driver can drive multiple cars.
#classes_relationship
#Java_Level_2
————————————————
📍Channel: @java_tutorial0101
❤🔥1
❤🔥1👍1
Java tutorial | دروس جافا 👨🏻🏫
1⃣5⃣#classes_relationship #Java_Level_2 ------------------------------------ Channel: @java_tutorial0101
للاستفادة أكثر انصحكم تتابعوا الفيديو رقم 15 و 16
❤3❤🔥1
public class Pattern {
public static void main(String[] args) {
int row=5;
for (int i = 0; i < row; i++) {
for (int j = 0; j < row-i; j++) {
System.out.print(" ");
}
for (int j = 0; j <=i; j++) {
System.out.print("* ");
}
System.out.println();
}
}
}
#Java_Level_2//————————————————-
// Telegram channel:@java_tutorial0101
❤2👍2
موقع رهيب جدا في ترجمة الملفات
https://www.matecat.com
————————————————
#translate
📍Channel:
https://t.me/java_tutorial0101
https://www.matecat.com
————————————————
#translate
📍Channel:
https://t.me/java_tutorial0101
👍3❤🔥2🔥1
Java tutorial | دروس جافا 👨🏻🏫
الجواب🔥 ———————————————— 📍Channel: https://t.me/java_tutorial0101
import java.util.Scanner;
public class Pattern {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Input number to print a diamond of asterisks: ");
int n = input.nextInt();
//print Triangle
for (int i = 1; i <= n-1; i++) {
for (int j = n - i; j > 0; j--) {
System.out.print(" ");
}
for (int k = 1; k <= i ; k++) {
System.out.print("* ");
}
System.out.println();
}
//print revers Triangle
for (int i = 0; i < n; i++) {
for (int j = 0; j < i; j++) {
System.out.print(" ");
}
for (int k = i; k < n; k++) {
System.out.print("* ");
}
System.out.println();
}
}
}
// Telegram channel:@java_tutorial0101
❤4👍4
This media is not supported in your browser
VIEW IN TELEGRAM
أنواع الدالة بشكل مختصر
#method
#Java_Level_1
------------------------------------
Channel: @java_tutorial0101
#method
#Java_Level_1
------------------------------------
Channel: @java_tutorial0101
❤2👍1
Java tutorial | دروس جافا 👨🏻🏫
1⃣5⃣ #method #Java_Level_1 ------------------------------------ Channel: @java_tutorial0101
وهنا اكثر تفصيل
15,16,17,18
15,16,17,18
❤1🙏1
Java tutorial | دروس جافا 👨🏻🏫
Photo
Function of String.pdf
653.6 KB
ملخص لجميع دوال String في java مع مثال لكل دالة
#String
#Java_Level_1
————————————————
📍TeleChannel: @java_tutorial0101
#String
#Java_Level_1
————————————————
📍TeleChannel: @java_tutorial0101
❤🔥3❤2👌1
ايش اللي تفضله عن نفسك عند مذاكرة المواد
Anonymous Poll
47%
ملخصات فيها اللب المفيد من المنهج
53%
فيديوهات تشرح المنهج