function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
CarlBCarlB 

Can an interface extend multiple interfaces

Hi,

I have two interfaces, called A and B and I want to create a third interface, called C, that extends both of these, e.g.
 
global interface C extends A, B {

}
However, it isn't valid.  Have I missed something or does Salesforce not allow this?

Thanks,

Carl
 
ShashankShashank (Salesforce Developers) 
In apex, a class can't "extend" two classes but can "extend" one class and "implement" multiple interfaces.