posted 11 years ago
How can i make a program that supports dependency injection scenario, without using any framework and using xml files ?
Suppose
classA{
B b;
}
class B{
C c;
}
class C{
}
when class A requires of an object of class B , an xml file called AB.xml provide object of class B to the class A. When class B requires of an object of class C , an xml file called BC.xml provide object of class C to the class B. and so on..
please give me implementation of above scenario..