Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Abstract class with all concrete methods

Are there some practical programming situations for someone to declare a class abstract when all the methods in it are concrete?

like image 310
Saravanan M Avatar asked Dec 12 '08 10:12

Saravanan M


1 Answers

Well you could be using a template method pattern where there are multiple override points that all have default implementations but where the combined default implementations by themselves are not legal - any functional implementation must subclass.

(And yes, I dislike the template method pattern ;))

like image 200
krosenvold Avatar answered Oct 07 '22 12:10

krosenvold