Standard way of getting a form inside block
You can get the fully qualified class name by using ClassName::class:

use Drupal\mymodule\Form\Myformclass;

  public function build() {

    $form = $this-&gt;formBuilder-&gt;getForm(Myformclass::class);
    return $form;
  }


If you want to avoid the full classname in code.