Skip to main content
gamedev.net
🔒 Locked

php and class inheritance

Started by CProgrammer Nov 15, 2004 at 4:16 PM 1 replies 350+ views
Original Post
CProgrammer
CProgrammer
Is there class inheritance in php?
Toolmaker
Toolmaker
Yes it does. It's implemented a la Java:

class A{    function foo()    {        echo "A::Foo()";    }}class B extends A{    function foo()    {        echo "B::Foo()";        parent::foo();    }}


This is the first I could find: http://www.php.net/manual/en/language.oop.php

Toolmaker
 

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.