Abstract or virtual method?

What is recommended in an abstract class?

Is there a virtual method that returns null or has an abstract method?

It is convenient and easy to return null to them, since I do not need to do anything that inherits from an abstract class. Nevertheless, returning null is somewhat difficult to understand if it is by design, error or design ....

Are there any clear recommendations for this?

+5
source share
2 answers

- , ( ), , , virtual . , , : virtual.

() , abstract. Stream: , ? (/go to).

+16

, , null ( - ), .

+2

All Articles