I am starting to work with
abstract class
I have the following code:
<?
abstract class Form
{
abstract public function inputs();
abstract public function validate();
}
class A extends Form{
function inputs(){
return ’ this inputs <br>’;
}
}
class B extends Form{
function validate(){
return ‘this is validate’;
}
}
$a = New A;
echo $a->inputs();
$b = new B;
echo $b->validate();
However it does not give me the results for the following methods
Inputs() and validate();
What am I doing wrong?
Please advise.