GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Notizen

Herencia

MOLINA OLVERA SANTIAGO Spanisch 1 Seite

Inhalt der Notizen (1)

Seite 1

import javax.swing.JFrame;

public class Herencia extends JFrame{

public Herencia(){ //Sin void para este metodo,constructor. Se llama igual que la clase pero con diferencias

this.setBounds(0,0,200,100);

this.setVisible(true);

}

public static void main(String args[]){

//JFrame ventana=new JFrame();

Herencia ventana=new Herencia(); //Llamamos al constructor

Herencia ventana2=new Herencia();

Herencia ventana3=new Herencia();

}

}

EXTRA:

Es como una funcion

Informationen

Beschreibung
Notiz am Herencia, erstellt von MOLINA OLVERA SANTIAGO am 19/09/2025.
Erstellt von
MOLINA OLVERA SANTIAGO · Sep 2025
Aktualisiert
19 Sep 2025
Aufrufe
0
Bewertung

Mehr zu Herencia y polimorfismo

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck