In this post we would see how to design a class which can neither be instantiated nor inherited. Java language has two modifiers/keywords which provide the individual functionality. A class declared as final cannot be inherited and a class declared as abstract cannot be instantiated. It may seem that if we combine the two we […]
The post Non-inheritable and non-instantiable class appeared first on www.VinaySingh.info.