0

what's the exact differences between interface and abstract class ?

23rd Oct 2016, 6:04 PM
s.vigneshwaran
s.vigneshwaran - avatar
4 ответов
+ 3
Interfaces have complete abstract methods. Attributes within interfaces are both final and static by default. Intefaces must be implement in order to provide functionality to those behaviours. Abstract classes may have abstract methods and non abstract methods. Abstract classes cannot be instantiated and one must inherit the abstract class in order to provide functionality to those abstract behaviours.
23rd Oct 2016, 7:30 PM
Ousmane Diaw
0
yaa but abstract class can be extended in another class
24th Oct 2016, 12:27 AM
s.vigneshwaran
s.vigneshwaran - avatar
0
Which i did mention above. "Inherit".
24th Oct 2016, 8:01 AM
Ousmane Diaw
0
yaa i didn't see that 👍
24th Oct 2016, 8:21 AM
s.vigneshwaran
s.vigneshwaran - avatar