Hello Sir, Working on inference concept ,below code worked fine..but when i made "interface x=null; and pointed reference to FortisHospital and GovtHospital..I got error message as "
Exception in thread "main" java.lang.Error: Unresolved compilation problems: Hospital.FortisHospital cannot be resolved to a type Hospital.GovtHospital cannot be resolved to a type
at TestHospital.main(TestHospital.java:30)
Please look at my code.. And reslove the problem .plz..
----------------------------------------------------------------------------- public class TestHospital {