Skip to main content
1 of 2
Monalisa Das
  • 890
  • 1
  • 13
  • 34
public virtual interface DemoInterface
{
         void go();
}

This code works fine if i write it inside in any apex class in org. But when I write this in developer console i get an error message as "Type is virtual by default in this context" This suggest that virtual is default keyword for interface!

Monalisa Das
  • 890
  • 1
  • 13
  • 34