java - Should all the methods in an abstract superclass be declared abstract? -


i haven't been able find clear answer this. there definitive answer?

short answer - no. if you're writing methods listed abstract, consider interface instead.

long answer: in abstract class have ability have methods implemented (generally, methods intend share among extenders of abstract class) , other methods can abstract force extenders implement them. methods (abstract , implemented) can freely referenced other methods usual.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -