You need to sign in to do that
Don't have an account?

It is possible to have an extension for a custom controller? If yes can anyone share me the some basic code for how to call that both controller and extension in apex class ?
It is possible to have an extension for a custom controller? If yes can anyone share me the some basic code for how to call that both controller and extension in apex class ?
Yes its possible, to access methods just call them from the child.
The only thing Its the the Class that its extented need to be Abstract or Virtual, if you need to use the mother class directly use virtual, if you need that one method from the mother be re-defined by the child use Abstract.
I will do an example with Virtual as its easier.
Here is the child
Then you can have a page like this:
or you can have a page that uses the Mother directly, but since there is not Save method in the mother you can only use the Cancel.
I Hope this small example work as an start point.
More documentation here:
https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_extending.htm
Regards,
Don't forget to mark your thread as 'SOLVED' with the answer that best helps yo