difference between interface and abstract class in c#
-
Have you never been taught how to search for your own information? The three questions you have asked here could all be answered with simple Google searches.
This space for rent
-
1)ABSTRACT CLASS -It contains both declaration and definition part. -Multiple inheritance is not achieved by abstract class. -It contain constructor. -It can contain static members. -A class can only use one abstract class. -It can be fully, partially or not implemented. -An abstract class can have non-abstract methods. 2)INTERFACE -It contains only a declaration part. -Multiple inheritance is achieved by interface. -It does not contain constructor. -It does not contain static members. -A class can use multiple interface. -It should be fully implemented. -Interface has only abstract methods.