Inheritance
Also written: kind of relationship
A way for one class to be a special kind of another class, as `NumberFormatException` is a kind of `IllegalArgumentException`. Code written for the general type also works with the more specific one.
Also written: kind of relationship
A way for one class to be a special kind of another class, as `NumberFormatException` is a kind of `IllegalArgumentException`. Code written for the general type also works with the more specific one.