Activity Forums Salesforce® Discussions What is the use of virtual keyword for a class in Salesforce?

  • Kirandeep

    Member
    July 21, 2020 at 12:51 pm

    If you use the 'virtual' keyword, then it indicates that this class can be extended and overrides are allowed. If the methods need to be overridden, then the classes should be declared with the virtual keyword.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos