May 2019
Intermediate to advanced
546 pages
12h 41m
English
The third type of reusable functionality of Apex classes is virtual classes. This methodology is the most used in the programming world. This type has more flexibility and more internal functionality than an abstract class.
The virtual classes have more or less the same functionality, but there are some big differences to the abstract classes:
|
Abstract classes |
Virtual classes |
|
Uses the abstract keyword in class modifier and methods. |
Uses the virtual keyword in class modifier and methods. |
|
All abstract methods in the abstract class must be implemented in the child class. |
Not all virtual methods need to be implemented in the child class. If you have five virtual methods, you can decide to implement three of ... |
Read now
Unlock full access