[ create a new paste ] login | about

Link: http://codepad.org/Xn0avKTO    [ raw code | output | fork ]

PHP, pasted on Jan 11:
<?php
abstract class islemler
	{
		public $sayi1 = 50;
		public $sayi2 = 20;
		
		public function topla()
		{
			echo $this->sayi1 + $this->sayi2;
		}
		public abstract function fark();
	}
	
	class islemler2 extends islemler
	{
		public function fark()
		{
			
		}
	}
	
	$islem = new islemler2();
	$islem -> topla();
?>


Output:
1
70


Create a new paste based on this one


Comments: