codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php class MyParent { private $prop; function __construct(){ $this->prop = 'test'; } } class MyChild extends MyParent { function __construct(){ $this->prop = 'test2'; } } $obj = new MyChild; print_r($obj); ?>
Private
[
?
]
Run code
Submit