Abstract Classes VS Interfaces in C sharp Arabic #32
Suggested Videos
❑ About The differences between abstract classes and interfaces.
Abstract classes VS Interfaces
❑ Abstract classes can have implementations for some of its members(methods),but the interface can’t have implementation for any of its members.
❑ Interfaces cannot have fields where as an abstract class can have fields.
❑ An interface can inherit from another interface only and cannot from an abstract class, where as an abstract class can inherit from another abstract class or another interface.
❑ A class can inherit from multiple interfaces at the same time, where as a class cannot inherit from multiple classes at the same time.
❑ Abstract class members can have access modifiers where as interface members cannot have access modifiers.
Tags:
C sharp