Esempio n. 1
0
<?php

include 'header.php';
require_once 'functions.php';
require_once 'Conta.php';
require_once 'ContaPremium.php';
$conta = new ContaPremium();
$conta->depositar(100);
$conta->sacar(50);
echo "<h1>" . "Seu saldo e: " . $conta->getSaldo() . " R\$" . "</h1>";
include 'footer.php';
Esempio n. 2
0
<?php

require_once "ContaAbstract.php";
require_once "ContaType.php";
require_once "ContaPremiumType.php";
$conta = new ContaPremium();
$conta->depositar(100);
$conta->sacar(50);
echo $conta->getSaldo();