Base class:
public class BaseClass
{
    public void beforeClass
    {
        TestDataLoader loader = new TestDataLoader(); //some implementation here
        readData = loader.fetchdata(...);
    }
}
Class-1:
public class ClassA extends BaseClass
{ 
  String a;
  public void method1()
  { 
    ..
    ..
  } 
}
Class-2:
public class ClassB extends classA
{
   String a1; 
   public void methodB(ClassA classA1)
   {
       if(classA1 == null) 
       {
           //do nothing
       }   
   classA1.method1();
   }
}
The problem i see here is that i am not able use testDataLoader (for which the implementation is in BaseClass) of ClassA in my ClassB. I am able to access method1 of ClassA in my ClassB but i am not able to use the testDataLoader of ClassA in ClassB
Note: i cannot pass arguments to method1 of ClassA as it won't support arguments to be passed to it.
Could someone help me on this?
