قناة منهج كلية تقنية المعلومات |2005|
رفتن به کانال در Telegram
رابط قناة المناقشة الخاص بنا، تفضل و اسأل اي سؤال و الكل حيجاوبك و المحترم يحترم. https://t.me/+n9odr2ZtI1Y1OGFk
نمایش بیشتر337
مشترکین
+524 ساعت
+67 روز
+930 روز
آرشیو پست ها
كيف كان امتحان جافا اليوم ؟
ناجحين أن شاء الله
https://t.me/OOP_JAVA_FREE
قناة لشاب ليبي يشرح فيها الoop و حاط اسئلة
The global (declared outside of any method) variables of a class are its fields, properties, or attributes. All of these are synonyms. They make up the state of the class "......." or objects ".........".
Methods is a kind of mold or template that dictates what objects can and cannot do.
A class encapsulates the static attributes (data) and dynamic behaviors( operations that operate on the data) in a box.
مهمات جدا حفظ التسميات الاخرى....
1)-Attributes :-
Variables Data
Property
State
Instance Variable
Data member
2)-Methods:-
Functions
Actions
Operation
Behavior
Instance method
Function member
يقدر يجي أي أسم من هذين في أي سؤال بدل من Attribute أو Method. و هن نفس المعنى.
#Oop #سيم_الثاني
In the UML, each class is modeled in a class diagram as a rectangle with .......... compartments
All the instances of a class have similar properties.
In Java, a class is a definition of objects of different kind.
The two most important concepts in OOP are ......
If you need access to these private variables, you have to use public "getter" and" setter" methods.
So we keep variables and methods in one place. That place is ".........."
The field of a class can be made read-only or write-only in Encapsulation.
A class can't have total control over what is stored in its fields.
To achieve encapsulation in Java, we provide private setter and getter methods to modify and view the variables values.
To achieve encapsulation in Java, we declare the variable of a class as private.
