Difference between abstract classes and interfaces.

Difference between abstract classes and interfaces.

Following are the differences between abstract and interfaces:-

When a derived class is inherited from an Abstract class, no other class can be extended then. Interface can be used in any scenario. Abstract class contains abstract method, i.e. actual implementation logic. On the other hand, interfaces have no implementation logic. Every method in an interface must be abstract. This is not necessary in case of abstract classes.
Similarities and difference between Class and structure in .NET
Both Class and Structures can have methods, variables and objects...
Features of Static/Shared classes.
Static classes are used when any change made to an object should not affect the data and functions of the class....
What is Operator Overloading in .NET?
Operator overloading is the most evident example of Polymorphism.....
Post your comment