codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php class islemler { public static $sayi1 = 50; public static $sayi2 = 20; public static function topla() { echo self :: $sayi1+self :: $sayi2; } } class islemler2 extends islemler { static function topla() { echo parent :: $sayi1*parent :: $sayi2; } static function fark() { echo parent :: $sayi1-parent :: $sayi2; } } echo islemler :: topla(); ?>
Private
[
?
]
Run code
Submit