I think they can be used to do the same things, Right ?
GeekTool
0
Junior Poster in Training
Recommended Answers
Jump to PostThey have many similarities in how they are used, and a quick Google will find you lots of detailed discussion on the differences, but the shortest version is that abstract classes can contain far more than interfaces (eg actual method defininitions), but you can only
extend
one class at a …
Jump to PostAn interface is more like a "template." It is the base for something. Like there could be an interface called Flyable. It would have methods for flying speed, how to fly etc. A duck would implement it. An abstract class would have some methods already built in like run. Every …
All 6 Replies
GeekTool
0
Junior Poster in Training
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
jakubee
0
Newbie Poster
jackbauer24
0
Junior Poster
ash.28.88
-3
Newbie Poster
delta_frost
0
Newbie Poster
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.