January 2015
Beginner to intermediate
302 pages
6h 56m
English
In addition to the built-in interfaces we have looked at so far, Apex also includes the ability to create and implement your own interfaces. When you define an interface in Apex, you only supply the methods names and signatures, not the inner logic. This feature allows you to design high-level processes that can be implemented in multiple ways. To define an interface, you replace the word class in the definition with the word interface. The following code block defines an interface and then later implements it twice:
public interface myInterface { String compileString(); Integer calculateNumber(); } public class budgetClass implements myInterface{ public String compileString(){ return 'Our budget is '; } public Integer ...Read now
Unlock full access