English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

So the class what i am creating should not follow inheritence.If any class used to try so it should give error.Plz can any one help me to get rid of this problem.Explain with an example.

2007-02-07 18:47:26 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

I suppose you could override the new method and make sure the size requested is equal to the size of your baseclass. If it is bigger, throw an error.

Interesting to see other ideas.

2007-02-07 19:40:54 · answer #1 · answered by sspade30 5 · 0 0

fedest.com, questions and answers