What's the difference between Abstract class and Virtual Class

184    Asked by Aashishchaursiya in Salesforce , Asked on Apr 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 Andrew Jenkins

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

Interviews

Parent Categories