GoConqr has a new look! Let us know what you think.

Notes

JAVA CLASE 3

Tomás Rowan IPOO Segundo Spanish 1 page

Content of the notes (1)

Page 1

CONSTRUCTORES: es el metodo que se busca al hacer un new de una clase, si no esta definido arrancara en null el objeto

no hay que omitir el constructor, tiene que estar.

HAGAN EL CONSTRUCTOR NULO EN CADA CLASE.

METODO EQUALS: todo objeto dispone de un metodo publico llamado equals()

definida en la clase object. sirve para comparar dos objetos, para saber si se esta apuntando a la misma direccion

de memoria. NO compara el contenido de los objetos. Es equivalente a ==. EL idle lo introduce asi. Pero nosotros

podemos sobreescribirlo para que compare contenido hay que implementar el metodo equals siempre

METODO toString(): heredan todas las clases de object. Produce una representacion textual y legible del contenido

del objeto.

WHILE, SWITCH, IF Y FOR en el segundo PDF.

Information

Description
Segundo IPOO Note on JAVA CLASE 3 , created by Tomás Rowan on 18/10/2022.
Created by
Tomás Rowan · Oct 2022
Updated
Oct 19, 2022
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?