[willi: Re: [PHP4BETA] calling member in parent class]
| From: | willi at sevenval dot de | Date: | Fri, 04 Feb 2000 13:20:59 +0000 |
| Subject: | [willi: Re: [PHP4BETA] calling member in parent class] | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9806@lists.php.net to get a copy of this message | ||
----- Forwarded message from willi -----
Date: Fri, 4 Feb 2000 14:14:54 +0100
To: Zeev Suraski <zeev@zend.com>
Subject: Re: [PHP4BETA] calling member in parent class
X-Mailer: Mutt 1.0pre3i
On Fri, Feb 04, 2000 at 03:05:52PM +0200, Zeev Suraski wrote:
> Care to explain your point?
>
> On Fri, 4 Feb 2000 willi@sevenval.de wrote:
>
> >
> > ParentClassname::overloadedFunctionName()
> >
Calling a Parent`s overloaded Function should me made this way.
class ParentClassname
{
public:
inline overloadedFunctionName() {cout << "abc";
}
class Child:public ParentClassname
{
public:
inline overloadedFunctionName() {cout << "cde";
}
main()
{
Child AClass;
AClass.ParentClassname::overloadedFunctionName();
AClass.overloadedFunctionName();
}
output : abccde
ok?
----- End forwarded message -----