Skip to main content
added 48 characters in body
Source Link
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!So specifying virtual keyword for it is redundant.

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!

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!So specifying virtual keyword for it is redundant.

Source Link
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!