Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why would you need to know whether a method of an abstract class is abstract

I've been asked a question. It is the following:

The API documentation of an abstract class tells you whether a method is abstract. When and why would you need to know this?

Any help would be appreciated.

like image 615
bob Avatar asked Dec 22 '22 14:12

bob


1 Answers

You need to know what methods are abstract because you will need to provide implementations for those methods when inheriting the class.

like image 188
Fredrik Mörk Avatar answered Jan 14 '23 14:01

Fredrik Mörk