Activity Forums Salesforce® Discussions What is difference between virtual class and abstract class?

  • Ayush

    Member
    July 21, 2020 at 10:30 am

    The virtual definition modifier declares that this class allows extension and overrides. You cannot override a method with the override keyword unless the class has been defined as virtual.The abstract definition modifier declares that this class contains abstract methods, that is, methods that only have their signature declared and no body defined.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos