In my PHP code I have a protected method in an abstract class which we'll call class A. If I create a new class called B which extends A, do I have to simply declare it public in B or do I have to re-write all the implementation so when I instanciate B I can then call this method?
abstract class A {
protected function test() {
//do some stuff here
}
}
class B extends A {
public function test() {
//Do I need to do something here?
}
}
Thank you Crouz