34,333
edits
Changes
→Subclassing in PHP
}
</pre>
The important point to note here is that savingsAccount inherits all the members and methods of bankAccount and adds a new member (the interest rate).
echo "Interest Rate = " . $mySaveObj->getInterestRate() . '<br>';
?>
</pre>