What is an abstract class in PHP?

前端 未结 6 479
萌比男神i
萌比男神i 2020-11-30 18:08

What is an abstract class in PHP?

How can it be used?

6条回答
  •  有刺的猬
    2020-11-30 18:24

    An abstract class is a class that is only partially implemented by the programmer. It may contain one or more abstract methods. An abstract method is simply a function definition that serves to tell the programmer that the method must be implemented in a child class.

    There is good explanation of that here.

提交回复
热议问题