<?php 

class A{
	
	public $name;
	private $name2;
	protected $name3;
	
	public function __construct(){
	
		$this->name = "ahmed";
		$this->name2 = "mohammed";
		$this->name3 = "jamal";
		echo $this->name;
		echo "<br>";
		echo $this->name2;
		echo "<br>";
		echo $this->name3;
		echo "<br>";
		$this->test();
	}
	
	public function __destruct(){
		echo "<br>";
		echo "yossef";
	}
	
	public function test(){
		echo "Kareem";
	}

}

$obj = new A();
?>