Added: 2 years ago
From: zoom1177
Views: 4,031
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (2)

Sign In or Sign Up now to post a comment!
  • Hmm, I still don't get what the difference between abstract and interface is. Sure, abstract classes must have at least 1 abstract method and an interface must have NO implemented methods, but what's the use? Why not only use abstract and forget about interfaces?

  • @Time4TruthDOTorg

    Hi the reason why we go for interface is, in C#, we dont have multiple inheritance. It means, a class can inherit from only one base class. So in order to support multiple inheritance, we go for interface.

    And also the difference between the two is, in abstract class not all the methods need to be abstract(ie) some methods may have implementation in base class itself

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more