Quantcast
Viewing all articles
Browse latest Browse all 22

Why Polymorphism does not help and we need Generics

Why we cannot use super types which can refer to some subtypes so that we can keep the classes Generics? The answer is that using Super types or Object as reference does not help. There will be issues with type casting and it is not an effective way to make code generic and reusable. This

Viewing all articles
Browse latest Browse all 22

Trending Articles