Extending the Advertisement Class
Anyone can help with how to let the AdvertisementFactory class register the new Advertisement Type I am creating through extending the Advertisement class.
I tried that through calling the AdvertisementFactory static register method as follows:
AdvertisementMyOwn advOwn = new AdvertisementMyOwn();
I made sure that the above line run at least once bofore the new advertisement class is being instantianted, however, still the AdvertisementFactory complains with an error message that the type of the class being instantiated is not recognized.
Thanks and regards,