Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #36427
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | omegajunior <omegajunior@protonmail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re:Reuse naming *Provider in other classes |
| Date | Mon, 3 Apr 2017 23:21:50 -0400 (EDT) |
| Organization | nntp.aioe.org |
| Lines | 35 |
| Message-ID | <obv3gf$15k3$1@gioia.aioe.org> (permalink) |
| References | <c5d8020b-2092-45c0-b0ad-377923357d6a@googlegroups.com> |
| NNTP-Posting-Host | 6YTFxEopl82UDeWVsSJQcA.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Newsreader | PiaoHong.Usenet.Client.Free:1.65 |
| Xref | csiph.com comp.lang.java.programmer:36427 |
Show key headers only | View raw
mike <mikaelpetterson@hotmail.com> Wrote in message: > Hi, > > We have XXProvider,YYYProvider interfaces in our application. They all extend the same interface called Provider that extends interface A. > > Now we have another interface B that provides functionality but it cannot extend class A. > > > These are the option I can come up with: > > 1. Still call it BProvider but not extend Provider > 2. Use other naming, BSupplier > > > Comments? Other options? > > br, > > //mike > Why is interface B unable to extend Provider? If B is more of an abstract implementation, make it an abstract class, implementing Provider, and have sub classes extend B. I tend to prefix interface classes with I, and abstract ones with A. I've seen JDK and JRE classes suffixed Impl if they are an implementing sub class. -- ----Android NewsGroup Reader---- http://usenet.sinaapp.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reuse naming *Provider in other classes mike <mikaelpetterson@hotmail.com> - 2017-03-10 04:24 -0800
Re: Reuse naming *Provider in other classes Andreas Leitgeb <avl@logic.at> - 2017-03-10 12:37 +0000
Re: Reuse naming *Provider in other classes mike <mikaelpetterson@hotmail.com> - 2017-03-10 05:29 -0800
Re:Reuse naming *Provider in other classes omegajunior <omegajunior@protonmail.com> - 2017-04-03 23:21 -0400
Re: Reuse naming *Provider in other classes lewbloch@gmail.com - 2017-04-06 02:44 -0700
csiph-web