How to include class file in custom block

Hello

I have created a custom block. and I need to include one class file into multiple files. so could you please guide me?

Please see attached screenshot.

  1. https://prnt.sc/4BmLEEem_dZ-
  2. https://prnt.sc/rGogZg3-l0Hq

I have created on class “MiniSurvey” and this class is added to multiple files.
like, View.php, edit.php, etc.

So I need to create one class file and use that class file multiple times.

Thank you.

If you provide your email address then I will send my custom blocks .zip file.

Hello every Concrete CMS developer

Please help me the above questions.

Place you class into the controller.php

Hello @TMDesigns

I have added class files in multiple ways but the error returns.

Way 1: Screenshot by Lightshot
way 2: Screenshot by Lightshot

Thank you !