Context Menu Option method override in CustTable Form control


In D365 if we develop new form then system allow us to override method directly on control and we can override metho getContextMenuOption and SelectedMenuOption but in case of existing form like CustTable we need to create an extension class how we can override these both method in extension class and on which event of FormControl ?