Hi All,
Please read the following sample to understand my code, I am running into error, and need your help,( I am following Decorator Design Pattern)
I suspect the error is due to my constructors, but not sure, please let me know how to overcome this issue. thanksInterface Int{ } Class A implements Int{ } Class B extends A{ } Class X implements Int{ } Class Y extends X{ } Main () { A object = new B(); object = Y(object); //<<<< Error