What's the difference between Abstract class and Virtual Class

199    Asked by Ankesh Kumar in Cyber Security , Asked on Jul 22, 2021

Hi I'm just confused on how to to use Abstract class and Virtual. Can't seem to find any difference between them and what are some scenarios where in it's applicable to use abstract or virtual.

Answered by Anna Ball

c# virtual vs abstract

Virtual methods have an implementation and provide the derived classes with the option of overriding it while Abstract methods do not provide an implementation and force the derived classes or subclasses have to override the method.

Your Answer


Parent Categories