Saltar al contenido

Constructores

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
constructor/kənˈstrʌktə/A special operation used to initialise a newly created object.
default constructor/dɪˈfɒlt kənˈstrʌktə/constructor por defecto
Parameters/pəˈræmɪtəz/
overloading/ˌəʊvəˈləʊdɪŋ/Declaring methods or constructors with the same name but different parameter lists, so the applicable version is selected from the call.

Material

Iniciar sesión o crear cuenta

IGCSE, A-Level & AP