Saltar al contenido

La Palabra Clave this

Introducido
Material
Lección de video para este tema Abrir la página de video
7:20

Creación de clases

Aquí hay un estudiante, almacenado como tres variables sueltas: un nombre, un año y una calificación. Eso funciona. Ahora añade mil estudiantes. Necesitarás tres mil variables…

Narración en inglés · subtítulos en inglés y 中文 que puedes cambiar

En esta lección

Videolección
Vocabulario
English Significado
parameter/pəˈræmɪtə/A value that specifies a particular member of a family of functions, models or systems.
field/fiːld/A named item of data within a database record.
object/ˈɒbdʒekt/An entity in a program with associated state and behaviour, often an instance of a class.
argument/ˈɑːɡjuːmənt/Values or references supplied to a function or procedure when it is called.
unqualified names
instance method/ˈɪnstəns ˈmeθəd/A method invoked with a particular object as its receiver, allowing it to use that object's state.
instance variable
shadowing/ˈʃædəʊɪŋ/
static method/ˈstætɪk ˈmeθəd/A Java method belonging to a class, callable without creating an instance and without an implicit current object.
reference/ˈrefrəns/A value that refers to an object; copying this value does not copy the object itself.
compile error
current object/ˈkʌrənt ˈɒbdʒekt/The instance on which an instance method or constructor is operating, referred to by this.

Material

IGCSE, A-Level & AP