Class variables in shortcodes

Thanks to the response by @bueltge :

Added extra line in the __construct() function:

public function __construct()
{
      $this->var = $this->shortcode_1(); //added
      add_shortcode( 'the_single', array( $this, 'shortcode_2' ));

}

tech