Hi all, I want to create a Helper class which basically delegate ( or thru inheritance ) all the methods to either DbHelper or GenHelper. But i really want one instance of Helper class so that i can declare all the varibale in it and DbHelper and GenHelper can access them. If i use delegation then how do i acces these variables? Whatz the way to do this with inheritance ??
use static keywork for it, declare static variable in helper call and then access them with static getter methods.. may be it solve ur problem..as static variables are class spcific not instance specific