php onay soyut yöntem varsa

0 Cevap php
abstract class A{
   abstract test();
   function __construct (){
       //check if test method exists on B//
   }
}

class B extends A{

}

new B();

my question is ... is there a way to check if the test method exists on class B? so I can avoid the fatal error ?

mantıklı umuyoruz.

0 Cevap