Inheritance of class methods

From: Date: Thu, 23 Oct 2008 11:04:01 +0000
Subject: Inheritance of class methods
Groups: php.general 
Request: Send a blank email to php-general+get-282342@lists.php.net to get a copy of this message
Hi, i have the following classes: class A { public function EchoMe($txt) { echo $txt; } } class B extends A { ... } in theory i can write something like that: $b = new B(); $b->EchoMe("test"); and i should get echo "test" on screen. am i correct ? -- Alain ------------------------------------ Windows XP SP3 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008

« previous php.general (#282342) next »