Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #7662
| From | Ethan <sam_cit@yahoo.co.in> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Avoid derived class to override a method yet should allow callers to invoke the method |
| Date | 2011-09-06 21:05 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <79cc1af8-1f3c-41c7-bbe2-8c5085b25e7c@t9g2000yqi.googlegroups.com> (permalink) |
Hello, I have a requirement where base class has method (implemented) and derived class shouldn't be able to override it. However, the method needs to be invoked by a caller who creates an instance of the derived class. Is this possible?
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar
Avoid derived class to override a method yet should allow callers to invoke the method Ethan <sam_cit@yahoo.co.in> - 2011-09-06 21:05 -0700
Re: Avoid derived class to override a method yet should allow callers to invoke the method Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-09-06 21:38 -0700
Re: Avoid derived class to override a method yet should allow callers to invoke the method Lew <lewbloch@gmail.com> - 2011-09-06 21:40 -0700
Re: Avoid derived class to override a method yet should allow callers to invoke the method Ethan <sam_cit@yahoo.co.in> - 2011-09-06 22:40 -0700
Re: Avoid derived class to override a method yet should allow callers to invoke the method Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-09-07 10:35 +0000
Re: Avoid derived class to override a method yet should allow callers to invoke the method Lew <lewbloch@gmail.com> - 2011-09-07 08:14 -0700
csiph-web