0

please tell me under what condition we should we use abstract classes
and main difference between interface and abstract classes

4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by fireheart1024
0

please tell me under what condition we should we use abstract classes
and main difference between interface and abstract classes

main differences b/w abstract classes and interface are:
1. methods in abstract class may have definations but methods in interface have only the prototypes.
2. variables in interface are final by default.
3.only an interface can extend other interface any class can extend an abstract class.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.