• Qiu YueNv
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Public Class Example
{
public static Integer a;
public integer b;
public Example()
{
a=10;
b=10;
}
public void add()
{
a=a+10;
b=b+10;
System.debug('a value is '+a);
System.debug('b value is '+b);
}
}


in the anonymous class

Example e1= new Example();
e1.add();
Example e2= new Example();
e2.add();


what is use of static keyword???????????