Re: parent_ctor()

From: Date: Tue, 18 Jul 2000 16:16:36 +0000
Subject: Re: parent_ctor()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24975@lists.php.net to get a copy of this message
KK>> a) $a can now actually be a B, and have all slots and methods of B, KK>> or KK>> KK>> b) $a can now poseAs B, but still have the slots and methods of A. c) Don't use settype(). Settype is bad. You never ever should forcefully convert objects between types. That's one of the most horrible features of C++. As applied to this situation - forbid settype() on or to any non-basic (i.e., not string/number) type. You really don't want it if you go for clean OO design. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#24975) next »