0

Wat is the difference between interface and abstract in java

I need detail explanation

25th Dec 2016, 6:52 AM
chockalingam
1 Resposta
+ 1
Abstract class cannot be constructed in a code. It only contains functions (with or no realization) and fields that children classes inherit. Interface is a container for functions. Class which inherits an interface must implement all functions. In C# class has only 1 parent (abstract or non-abstract class) and infinite amount of interfaces.
25th Dec 2016, 7:29 AM
Vladislav
Vladislav - avatar