Bỏ qua nội dung

Object-oriented programming

Đã giới thiệu
Tài liệu
Bài học video cho chủ đề này Mở trang video
13:52

Mô hình lập trình

Đây là một công việc: liệt kê tất cả sinh viên có điểm A. Một lập trình viên viết một vòng lặp — bắt đầu từ bản ghi đầu tiên, kiểm tra điểm, thêm tên vào danh sách, di chuyển…

Thuyết minh tiếng Anh · Có thể chuyển đổi phụ đề tiếng Anh và tiếng Trung

Trong bài học này

Bài giảng video
Từ vựng
English Ý nghĩa
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/đối tượng
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/bao封装
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/lớp
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/thực thể
visibility/ˌvɪzɪˈbɪlɪti/The rules that control where a class member can be accessed.
constructor/kənˈstrʌktə/hàm khởi tạo
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/lớp con
superclass/ˈsuːpəklæs/lớp cha
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/tích hợp
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.
Tiếp theo →

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP