create submenu page – error function not found or invalid function name

It seems if you use classes you have to use array($this, $function)); in the function element as shown below.

add_submenu_page( $mainmenu_slug, $submenu_title, $submenu_label, $capability, $submenu_slug , array($this, $submenu_function) );