Interviews3 answers
An abstract with only abstract method how is it different from interface????
3 Answers
no, abstract class can have abstract and non abstract methods.
interface is contract and abstract is incomplete class
Ravi PrakashPosted Jun 12, 2018, 1:10 AM EDT
Abstract class can have constructor which may assign soe value to its data members. An abstract class also can inherit from another abstract class. These 2 features are not available in interfaces
Pirzada JeelaniPosted Jun 3, 2018, 9:47 AM EDT
if that was the case i prefer directly interface instead of abstract...
Vipin MittalPosted Jan 22, 2018, 9:04 PM EST
