I have a subclass and I am overriding the inherited parent method: I am removing the throws clause from the method declaration.
Now, using polymorphism, the my insta
The compiler ses an A which does throw an Exception. If you however told the compiler it's an actual SubB object it will stop complaining
A
SubB
SubB b = new SubB(); b.foo();