All pastes #577073 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-06-19 19:32 UTC
rendered paste body
<?php

class A 
{
	function A1()
	{
		return "A1";
	}
	
	function A2()
	{
		return "A2";	
	}
	
	
}


class B
{
	function B()
	{
		$this->A = new A();
	}
	
	function B1()
	{
		return  $this->A->A1();
	}
	
	function B2()
	{
		return  $this->A->A2();
	}
}

$B = new B();
echo $B->B1();
echo $B->B2();
?>