How to use class object as parameter in Drupal7 Batch processing

My code as is:


foreach ($some as $one){
    $batch['operations'][] = array(
        array($this, $other_arguments),


processing_function_name(Classname $object, $other_arguments, &$context){

The error is: processing_function_name(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition “Classname” of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in …..

Drupal version: