<?php abstract class Basis { public function __construct($args = null) { if (is_numeric($args) && $args > 0) echo 'Geen argumenten gebruiken halve gare!'; } } class Testing extends Basis { public function __construct() { parent::__construct(func_num_args()); } } $test = new Testing('stiekem een argument toegevoegd!');
You have javascript disabled. You will not be able to edit any code.