public with sharing class Forward_ref
{
call_before_declaration();
public void call_before_declaration()
{
System.debug("before declaration");
}
}
It gave me the error "Method must define a body".
However I corrected the error as mentioned below,
public with sharing class Forward_ref
{
public void call_method()
{
call_before_declaration();
}
public void call_before_declaration()
{
System.debug('Forward declaration');
}
}
So it looks like this a way it works in apex,
And looks to me that I have used the wrong term for this they call it "Forward declaration" in apex not "forward referencing".
Please add further if i missed something to build the concept .
Actually I was trying to write some thing like ,
It gave me the error "Method must define a body".
However I corrected the error as mentioned below,
So it looks like this a way it works in apex,
And looks to me that I have used the wrong term for this they call it "Forward declaration" in apex not "forward referencing".
Please add further if i missed something to build the concept .
Thanks
Saurabh Agrahari