<?php class Produit { var $nom; function Produit( $nom="element", $prix=0) { $this->nom = $nom; $this->prix = $prix; } function getNom() { return $this->nom; } } class Achat extends Produit { } $element = new Achat( "Logiciel", 5442 ); print $element->getNom (); ?>