You can just instantiate an object from class CustomPlugin
like $obj = new CustomPlugin('id','name','desc');
in CustomPluginTemplate.php
and call any method from the class within the CustomPluginTemplate.php
file as $obj->query_vars();
Before instantiating make sure you class is included.