java - Prevent instantiation of a class from a library -


i developing application depends on library. not have control on library code.

i have extended class library in application. want application able create instances of extended class, not parent class.

is there way prevent object creation of parent class?

i don't think there way in can restrict creation of parent instance, if see architecture "initializer" make sure instance created , @ same time allocate heap space.

at end memory has allocated , instances has created.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -