<?php

class child {
var $birth;

function child($dateOfBirth) {
$this->setBirth($dateOfBirth);
$this->cry();
}
function cry() {
print(“OUIIIIIIN !”);
}
function setBirth($dateOfBirth) {
$this->birth=$dateOfBirth;
}
}

class nell extends child {
var $isBeautiful;
var $isWonderful;

function nell($dateOfBirth) {
parent::setBirth($dateOfBirth);
//Does not cry
$this->smile();
$this->isBeautiful=true;
$this->isWonderful=true;
}
function smile() {
print(” :-) “);
}
}

$pitchounette=new nell(“2007-03-17”);

?>

[Atome original]