Puede verse en vivo en CodePen
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App { | |
public static void main(String[] args) throws Exception { | |
Auto a1 = new Auto(); | |
a1.verDatos(); | |
Auto a2 = new Auto("VW", "Fusca"); | |
a2.verDatos(); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Auto | |
extends Vehiculo { | |
} |
Puede verse en accíón en este link
Se puede visualizar en https://codepen.io/LUIS-SEBASTIAN-DE-LOS-ANGELES-HERNANDEZ/pen/xbGOQzX
Se puede ver el resultado en CodePen
- Todos los archivos se deben considerar en el contexto de un proyecto de Laravel
- El nombre del archivo indica su ubicación en el proyecto, usando dos guiones bajos. Por ejemplo: routes__web.php indica que se trata del archivo web.php ubicado en el directorio routes del proyecto
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Auto { | |
String color = ""; | |
String marca = ""; | |
String modelo = ""; | |
Motor maquina = new Motor(); | |
///A | |
Rueda rueda1 = new Rueda(); | |
Rueda rueda2 = new Rueda(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
</head> | |
<body> | |
<form action="/usuario/preferencias" method="post"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class Practico { | |
public static void main(String[] args){ | |
Scanner teclado = new Scanner(System.in); | |
String nombreU=""; | |
String opcion = ""; | |
int cantidadDatos = 10; | |
String[] nombres = new String[cantidadDatos]; | |
String[] apellidos = new String[cantidadDatos]; |
NewerOlder