الانتقال إلى المحتوى

Object-oriented programming

مُقدَّم
ورقة عمل
درس فيديو لهذا الموضوع افتح صفحة الفيديو
13:52

نماذج البرمجة

إليك مهمة واحدة: سرد كل طالب حصل على درجة A. يكتب مبرمج حلقة تكرار — ابدأ من السجل الأول، تحقق من الدرجة، أضف الاسم إلى قائمة، انتقل…

سرد باللغة الإنجليزية · ترجمة نصية بالإنجليزية و中文 يمكنك التبديل بينهما

في هذا الدرس

درس فيديو
مفردات
English المعنى
public/ˈpʌblɪk/Describes a class member that code outside the class can access.
routines/ruːˈtiːnz/Sections of code written to perform particular tasks within a program.
object/ˈɒbdʒekt/كائن
private/ˈpraɪvət/Describes a class member that code outside the class cannot access directly.
method/ˈmeθəd/A defined way of performing a task or investigation; in programming, a function associated with a class or object.
encapsulation/ɪnˌkæpsjʊˈleɪʃn/التغليف
object-oriented programming/ˈɒbdʒekt ˈɔːrɪəntɪd ˈprəʊɡræmɪŋ/A way of designing programs using objects that combine data and methods.
class/klæs/فئة
attributes/ˈætrɪbjuːts/A named property or characteristic associated with an object, element or record.
state/steɪt/The saved information needed to continue a program from its current point.
behaviour/bɪˈheɪvjə/The actions an object can perform through its methods.
instance/ˈɪnstəns/حالة (Instance)
visibility/ˌvɪzɪˈbɪlɪti/The rules that control where a class member can be accessed.
constructor/kənˈstrʌktə/المُنشئ
gettersMethods that allow other code to read an object's attribute values.
settersMethods that allow other code to change an object's attribute values.
get methodsMethods that allow other code to read an object's attribute values.
set methodsMethods that allow other code to change an object's attribute values.
Inheritance/ɪnˈherɪtəns/An is-a relationship.
subclass/ˈsʌbklæs/فئة فرعية
superclass/ˈsuːpəklæs/فئة عليا
overriding/ˌəʊvəˈraɪdɪŋ/Providing a subclass implementation of an inherited instance method with a matching signature, subject to the language's rules.
Polymorphism/ˈpɒlɪmɔːfɪzəm/The same call behaving differently per class, which is what lets a new subclass be added without changing existing code.
Abstraction/əbˈstrækʃn/Representing essential features while leaving out unnecessary detail.
method callAn instruction that asks an object to perform one of its methods.
loop/luːp/A structure that repeats a sequence of instructions.
list/lɪst/A collection of items arranged in a particular order.
interface/ˈɪntəfeɪs/A way for users or programs to communicate with the computer's hardware.
is-a relationship
Containment/kənˈteɪnmənt/An object holds another object as one of its attributes.
aggregation/ˌæɡrɪˈɡeɪʃn/تجميع
references/ˈrefrənsɪz/Values that identify objects so that code can access them.
collection/kəˈlekʃn/A group of items stored together so they can be managed and used.
string/strɪŋ/A sequence of characters treated as a single data value.
composition/ˌkɒmpəˈzɪʃn/A relationship where an object contains parts that depend on it to exist.
membersThe attributes and methods that belong to a class or object.
التالي →

ورقة عمل

تسجيل الدخول أو إنشاء حساب

IGCSE, A-Level & AP