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

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.