PHP·98 questions

What are abstract classes?

Answer
abstract class Name { }.
Cannot instantiate.
Can contain implementation.
abstract function — without implementation.
Subclasses must implement abstract methods.
Was this answer helpful?

More questions in this topic

Related questions from other topics