コード例 #1
0
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<?php 
require './class/ModelagemDeClasse.php';
$arthur = new ModelagemDeClasse("Arthur", 20, "Programador", 2000);
$arthur->setProfissao("Analista de Sistemas");
$arthur->trabalhar("Iha", 100);
echo "<br><br>";
echo "<pre>";
var_dump($arthur);
echo "</pre>";
?>
</body>
</html>
コード例 #2
0
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <title>WS PHP - Modelagem de Classe</title>
    </head>
    <body>
        <?php 
require './class/ModelagemDeClasse.class.php';
$robson = new ModelagemDeClasse('Robson', 27, 'Programador', 1200);
$robson->setProfissao('Web Master');
$robson->Trabalhar('um portal', 12000);
var_dump($robson);
?>
    </body>
</html>
コード例 #3
0
<!DOCTYPE html>
<html lang="pt-br">
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php 
require './class/ModelagemDeClasse.class.php';
$robson = new ModelagemDeClasse('Bruno', 32, 'Desenvolvedor', 1200);
$robson->setProfissao('Engenheiro de Software');
$robson->Trabalhar('portal', 12000);
var_dump($robson);
?>
    </body>
</html>