ID Analytics Interview Question

Difference between abstract class and Interface.

Interview Answers

Anonymous

Jan 20, 2017

An abstract class can have both abstract and normal methods. Any class that derives from an abstract class HAS to implement the abstract methods however it need not implement the non-abstract methods. All methods in an interface are abstract by default and any class that implements an interface must provide method body for all the methods of the interface.

1

Anonymous

Feb 2, 2017

Can you tell what were the onsite questions? Thanks