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 bound to contain abstract methods only whereas a Class CAN have concrete methods.
A Class CAN implement multiple Interfaces but CAN NOT extend multiple classes.
In an Interface all variables arestatic
andfinal
.But this need not be true in a Class.
The default …
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.