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' ));

}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)