Desarrollo De Programas Con Clases Flashcards

1
Q

Getter

A

Método para obtener el valor de un atributo privado de manera controlada

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Setter

A

Método para modificar el valor de un atributo de manera controlada

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Clase abstracta

A

Aquella que define métodos sin implementarlos completamente, sus subclases deben completarlos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Interfaz

A

Contrato que define métodos sin implementarlos, permitiendo herencia múltiple en Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Modificadores de acceso (encapsulamiento)

A

private, acceso solo dentro de la misma clase
-none-, acceso solo dentro del mismo paquete
protected, acceso en paquetes y clases derivadas
public, acceso desde cualquier clase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Clase Object

A

Superclase de todas las clases en Java

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

extends

A

Indica herencia

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

super.xxxx

A

acceso a métodos/atributos de la superclase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

final

A

Evita sobreescritura de métodos y atributos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

toString()

A

Representa objeto como texto

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

clone()

A

Crea copia del objeto

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

equals()

A

Compara objetos por contenido

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

finalize()

A

Llama al recolector de basura

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

hashCode()

A

Devuelve código hash para las colecciones

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Wrapper

A

Clase que envuelve un tipo primitivo, permitiendo tratarlos como objetos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly