Computer Science, asked by g4unit3areddynee, 1 year ago

difference between interface and abstract class

Answers

Answered by amruthadeshpande
0
1) Abstract class can have abstract and non-abstract methods while interface can have only abstract methods.
2) Abstract class doesn't support multiple inheritance while Interface supports multiple inheritance.
3) Abstract class can provide the implementation of interface while Interface can't provide the implementation of abstract class.
4) The abstract keyword is used to declare abstract class while the interface keyword is used to declare interface.

amruthadeshpande: plss mark it as brainliest..
Answered by NightHawk
0
Abstract class doesn't support multiple inheritance while Interface supports multiple inheritance.

 Abstract class can provide the implementation of interface while Interface can't provide the implementation of abstract class.
Similar questions