From aceaabceffd537a0ed83fa25e189b08eae585f4a Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Wed, 7 Apr 1999 21:05:13 +0000 Subject: PHP 4.0 --- test_class_inheritance | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test_class_inheritance (limited to 'test_class_inheritance') diff --git a/test_class_inheritance b/test_class_inheritance new file mode 100644 index 0000000000..3f903e62d1 --- /dev/null +++ b/test_class_inheritance @@ -0,0 +1,29 @@ +class_name; + } +}; + + +class ChildClass { + var $class_name = "ChildClass"; + + function ChildClass($value, $new_value) { + BaseClass::BaseClass($value); + print "new value is '$new_value'\n"; + } + function MyClassName($a_value) { + return BaseClass::MyClassName()." and the value is '$a_value'"; + } +}; + + +$obj = new ChildClass("Test", "Another test"); +print $obj->MyClassName("not interesting"); \ No newline at end of file -- cgit v1.2.1