Weird wording on documentation? "Abstract private method" ???
Posted: Mon Jul 23, 2007 6:06 pm
http://api.joomla.org/
The has a graphic associated to an "Abstract private method." also there is no Protected method distinction anywhere.
I'm new to Joomla! but not to OOP, I hope thats a typo or an oversite. An Abstract private method will do nothing but give visibility errors.
Running this gives "Fatal error: Abstract function SuperDuperClass::abstractPrivateMethod() cannot be declared private in /home/ludicruz/dev/APF.php on line 9"
Just a heads up
The has a graphic associated to an "Abstract private method." also there is no Protected method distinction anywhere.
I'm new to Joomla! but not to OOP, I hope thats a typo or an oversite. An Abstract private method will do nothing but give visibility errors.
Code: Select all
<?php
abstract class SuperDuperClass
{
public function __construct()
{
$this->abstractPrivateMethod();
}
abstract private function abstractPrivateMethod(); //FATAL ERROR!!
}
class SuperSubClass extends SuperDuperClass
{
private abstractPrivateMethod()
{
//won't even get here!
}
}
$sub = new SuperSubClass(); //here neither
?>
Just a heads up