I'm a newbie to salesforce. I have 2 Apex class as follows:
public class A {
B bb;
public PageReference save() {
bb = new B();
return bb.pay();
}
}
public class B {
public PageReference pay(){
}
}
I would like to return the PageReference method pay() at class B on class A. Is that possible? Or Are there any other way for me to call the pay() method from class A? Cuz right now, when I call the method from save() it won't redirect me to pay()
Thanks to the kind hearted soul!