Alguien podría ayudarme con ejercicio de php es sobre programación orientada a objetos.
Aquí adjunto la información:
Crear una clase segun sea la opcion seleccionada (Unicamente una opcion)
Clase: HTML
Metodos:
GenerarEncabezado($title, $links)
Nota: $links corresponde a un array de links
<!DOCTYPE html>
<html lang="es-CO">
<head> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>$tile</title>
<!-- Links Generados $links --> <link rel="stylesheet" href="?"> <link rel="stylesheet" href="?"> <!-- Links Generados -->
</head>
GenerarBody($contenido) (0.5 pto)
<body>
<!-- Contenido $contenido -->
</body>
</html>
GenerarForm($action,$method,$inputs) (1 pto)
Nota: $inputs corresponde a un array de type (text,number,date,...)
<form action="$action" method="$method">
<!-- $inputs -->
</form>
GenerarTable($columnas, $filas) (2 pto)
Nota: $columnas y $filas corresponde a arrays
<table>
<thead>
<!-- $columnas -->
</thead>
<tbody>
<!-- $filas -->
</tbody>
</table>
Clase: CuentaElectronica
Atributos:
Titular
Saldo
Metodos:
CrearCuenta($titular, $saldo)
ConsultarEstado()
Nota: Debera imprimir el titular y el saldo disponible
Consignar ($valor)
Nota: $valor se suma a el Saldo
RetirarSaldo($valor)
Nota: $valor se resta a el Saldo
Por fa!!!...Alguien que me ayude o explique ya que debo entregar estos ejercicios.
Gracias y Buenas noches